Commit Graph

60 Commits

Author SHA1 Message Date
5e74120c3f Use put_internal instead. 2016-04-05 12:32:05 +02:00
1120a59e30 Added management command for adding Attract node types to a project.
./manage.py setup_for_attract {project UUID} [--replace]
2016-04-05 12:25:41 +02:00
6f8afbbdc0 Replaced print statement with print function 2016-04-04 17:32:48 +02:00
e433e90dd8 Bugfix 2016-04-04 17:31:06 +02:00
7a171f471c Renamed package 'manage' to 'manage_extra'
There already is a Flask-default 'manage.py', and with a subdir 'manage'
in the same directory, 'import manage' is ambiguous.
2016-04-04 15:40:46 +02:00
465b145609 More flexible, less error-prone configuration system.
WARNING: make a backup copy of your local config.py before pulling
this change, as Git will overwrite it without warning.

The configuration defaults to deployment settings, allowing overrides.
Overrides are read from config_local.py and from the file pointed to
by the PILLAR_CONFIG env var.
2016-04-04 14:59:11 +02:00
a1930c63d0 Manage command to expire all links, to test with slow responses. 2016-04-04 13:20:52 +02:00
73bb125e7b Added --quiet option to refresh_project_links mgmt command 2016-04-01 13:29:22 +02:00
ce242e1de3 Added manage.py command to refresh (almost) expired links.
manage.py refresh_project_links  5672beecc0261b2005ed1a33 -c 4

This refreshes the oldest 4 links of that project.
2016-04-01 13:03:27 +02:00
84723eb8d3 Tweaks fo manage.py to allow default project creation 2016-03-24 16:05:39 +01:00
a33e4421a8 Introducing Project creation
Authorised users can now create projects. The before and after insert
projects hooks take care of stripping unwanted urls and attaching
default node_type and permissions, as well as initialising a storage
bucket per project. We are temporarily switching to the development
version of the gcloud library, since it allows the creation of EU-based
buckets.
2016-03-24 15:16:37 +01:00
b8bcd0c5fe made manage.py executable 2016-03-18 16:34:36 +01:00
8d15d0750c Auto-detect Eve settings in manage.py 2016-03-15 10:52:46 +01:00
086284b883 Code cleanup and improved formatting 2016-03-14 12:13:49 +01:00
8cb3928531 Utility to subscribe node owners to notifications 2016-03-09 16:54:52 +01:00
226b7f71a6 Handle InternalServerError on files_make_public_t 2016-03-01 17:44:01 +01:00
8faa6c7384 Skip all exception for files_make_public_t 2016-02-26 21:41:46 +01:00
8dbb046aad Handle all exception for files_make_public_t 2016-02-26 19:27:31 +01:00
b093f9fd7c Handle InternalServerError exception on files_make_public_t 2016-02-26 19:13:24 +01:00
d9b7310d2d Manager command to index nodes 2016-02-26 18:38:39 +01:00
d76c47afd5 Improving initial installation process
This is still work in progress, but the new manage.py setup_db function
allows for guided creation of basic groups and for the admin user.
2016-02-25 12:43:46 +01:00
774bc35206 Parentheses on print statements 2016-02-16 10:54:44 +01:00
c7b6e798c0 Introducing Algolia search for users
With the new dependency, algoliasearch, we can push and store on the
Algolia service a limited set of properties from the Users collection.
2016-02-10 16:13:07 +01:00
1a5fcc1744 Refactored content of main __init__ into utils 2016-01-26 15:34:56 +01:00
e295165864 Introducing Projects
We are now using a more document-based approach to define projects. In
the new projects collection we store the definition of a project and
embed the node_types. This allows for custom node_types for every
single project. This change has a certain impact on the custom
validators, as well as the permission computation.
Further, Cerberus 0.9.1 is required in order to properly support the
allow_unknown statements in the projects_schema definition.
2016-01-25 16:32:50 +01:00
ff174439c3 Tweaks to management functions 2016-01-08 14:20:07 +01:00
f9f411366d Management functions
- set_attachment_names assigns to GCS blobs names based on the node
they belong to
- files_verify_project reports conflicts in file ids
2016-01-08 12:55:21 +01:00
1b8f096e20 Introducing Texture node_type 2015-12-22 20:39:57 +01:00
772c28eaef Fix for parent_id check on manage.py 2015-11-25 16:22:36 +01:00
559589f927 Introducing file variations
We are ditching the excessively normalised data structure for files.
Now file variations are embedded in the original file document for
improved performance.
2015-11-25 16:16:09 +01:00
a96526351b Tweaks to upgrade_node_types 2015-11-15 17:46:32 +01:00
6282229488 Refactored manage.py
No functional changes.
2015-11-15 15:43:43 +01:00
8f8b2cfbd4 Added "deleted" status to some node_types 2015-11-13 17:32:05 +01:00
a661c1c107 Renamed path to file_path in File properties 2015-11-05 18:47:36 +01:00
e00e4698ea Added status property to node_type Project 2015-11-04 16:22:23 +01:00
8f311b8a10 Updated migration to support nodes_blog in Project node type 2015-10-30 15:23:51 +01:00
1d62c180d3 Script to add parent property to every node 2015-10-29 19:10:53 +01:00
6e62d9c2a6 Tweaks to import code
This can be phased out later, since we will not need to import more
projects from the old cloud.
2015-10-28 15:34:23 +01:00
03e8945c84 Set maxlength for node_type post content field 2015-10-15 20:25:58 +02:00
4f6c0e27ce Added url to post node properties 2015-10-15 14:49:15 +02:00
5be02920e2 New Blog and Post note types 2015-10-15 14:24:35 +02:00
834fcf2b82 Removed username display in procedural form for project 2015-10-15 02:37:43 +02:00
5d6327844b New nodes_latest and nodes_featured for project node type 2015-10-14 01:38:59 +02:00
8d76898928 Fix for missing parent node_type for groups 2015-10-12 19:33:07 +02:00
9e9e7b82ca Hiding content_type and file form fields for editing 2015-10-12 19:31:04 +02:00
018ddfa20b New authentication logic
We are replacing the existing mixed BaseAuth TokenAuth authentication
logic and permissions system with a more streamlined solution, based on
user id and groups checking against node_type stored permissions. Such
permissions can be overridden on the node level (and complement the
public GET operations on the node entry point).
2015-10-11 22:20:18 +02:00
af06a67d58 Renamed config value
From FILE_STORAGE to STORAGE_DIR to comply with the existing naming
schema.
2015-10-08 14:30:32 +02:00
1bda2142cd Updates to manage.py
Tweaks to node_type comments validation code.
2015-10-06 17:37:07 +02:00
44302b6623 Introducing the comment node_type 2015-10-05 19:55:56 +02:00
53f881e96c Google Cloud Storage support
We introduce a new node_type, storage, which can support different file
storage backends and makes them available for browsing via dedicated
entry points in the application. We intend to keep pillar storage
agnostic and support both internal/local storages as well as
remote/hosted solutions.
2015-10-03 17:07:14 +02:00