Francesco Siddi
8256ab40dc
Merge branch 'projects'
2016-01-25 16:37:31 +01:00
Francesco Siddi
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
Francesco Siddi
4ce2d60df8
Added _format_name to handle existing extensions
2016-01-08 15:12:19 +01:00
Francesco Siddi
ff174439c3
Tweaks to management functions
2016-01-08 14:20:07 +01:00
Francesco Siddi
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
Francesco Siddi
6bda83d5b5
Add format to filename
...
So that files have the correct extension when they are downloaded.
2016-01-07 20:27:43 +01:00
Francesco Siddi
c6636e4ac7
Assign ContentDisposition to GCS items on save
2016-01-07 20:06:25 +01:00
Francesco Siddi
7037de64b3
Upped hardcoded expiry time for signed urls
2016-01-06 14:24:46 +01:00
Francesco Siddi
816f5c144e
Updated readme.md
2016-01-05 15:50:03 +01:00
Francesco Siddi
1b8f096e20
Introducing Texture node_type
2015-12-22 20:39:57 +01:00
Francesco Siddi
12fd3caa7a
Restored resource_parse_attachments
2015-12-02 11:52:20 +01:00
Francesco Siddi
37e4333f08
Temporarily disable attachment parsing for resource
2015-12-01 19:28:58 +01:00
Francesco Siddi
e87817533c
Parse attachments also on resource request
2015-12-01 19:02:29 +01:00
Francesco Siddi
217d768c92
Attachment schema for post node_type
2015-12-01 18:30:39 +01:00
Francesco Siddi
0475f7b456
Allow attachments on nested properties
2015-12-01 18:23:33 +01:00
Francesco Siddi
f4ef811fae
Introducing tags and categories node_type asset
2015-11-30 19:23:33 +01:00
Francesco Siddi
f2ac8e48e3
Asynchronous push_to_storage for files and images
2015-11-26 19:20:07 +01:00
Francesco Siddi
55b17403f5
Video variations are embedded in files
2015-11-26 17:53:35 +01:00
Pablo Vazquez
772c28eaef
Fix for parent_id check on manage.py
2015-11-25 16:22:36 +01:00
Francesco Siddi
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
Francesco Siddi
ff37eeb32a
Introducing sorting for assets and groups
...
By adding the order property, it is now possible to query assets and
groups sorted by arbitrary order.
2015-11-20 12:16:27 +01:00
Francesco Siddi
cfb0da7e7c
Introducing is_reply property for comments
2015-11-18 13:02:43 +01:00
Francesco Siddi
9eb7eb3ada
Fix for signup with short usernames
2015-11-18 11:17:46 +01:00
Francesco Siddi
423758f447
Fix for attachments url parsing loop
2015-11-16 16:53:42 +01:00
Francesco Siddi
b81ba226eb
Removed maxlength on description
2015-11-16 15:17:40 +01:00
Francesco Siddi
5b6feac154
Introducing image attachments
...
Before returning a response, check if the 'attachments' property is
defined. If yes, load the file (for the moment only images) in the
required variation, get the link and build a Markdown representation.
Search in the 'field' specified in the attachment and replace the
'slug' tag with the generated link.
2015-11-16 12:32:42 +01:00
Francesco Siddi
a96526351b
Tweaks to upgrade_node_types
2015-11-15 17:46:32 +01:00
Francesco Siddi
6282229488
Refactored manage.py
...
No functional changes.
2015-11-15 15:43:43 +01:00
Francesco Siddi
3550813302
Refactoring for more meaningful var names
2015-11-13 17:39:54 +01:00
Francesco Siddi
11f8769eb8
Fixes to check_permissions
...
This allows nodes to have their permissions correctly evaluated for
logged in users.
2015-11-13 17:32:50 +01:00
Francesco Siddi
8f8b2cfbd4
Added "deleted" status to some node_types
2015-11-13 17:32:05 +01:00
Francesco Siddi
8596466d49
New default setting for email_communications
2015-11-12 01:19:59 +01:00
Francesco Siddi
f329f2ff45
Added settings to User schema
2015-11-12 00:34:34 +01:00
Francesco Siddi
88774565ba
Handle exception when blob has not signed_url
2015-11-10 17:56:43 +01:00
Francesco Siddi
b0a976ad54
Fix for undefined keyword
2015-11-09 20:17:51 +01:00
Francesco Siddi
9fefee800c
Introducing scheme for url generation
...
This requires a new SCHEME value in the config. Prevents browser
warnings about insecure links when working with https.
2015-11-09 17:41:54 +01:00
Francesco Siddi
de3bc0e864
Additional check if project is not specified on asset creation
2015-11-06 16:09:54 +01:00
Francesco Siddi
a661c1c107
Renamed path to file_path in File properties
2015-11-05 18:47:36 +01:00
Francesco Siddi
4e5d076f49
Tweaks to push_to_storage
...
Keep file removal, but do not remove file when encoding video until
everything is encoded. Also limit the response from GCS Post. Using
blob_to_dict leads to threading issues (due to signed url generation).
Good fix if you want to get involved in Pillar development!
2015-11-05 12:36:30 +01:00
Francesco Siddi
1819886af5
Require full_name for user
2015-11-05 00:23:48 +01:00
Francesco Siddi
e9cc719f36
Ensure unique username on user creation
2015-11-04 22:12:42 +01:00
Francesco Siddi
5f818fdc39
Tweaks to user model
...
Mainly checking for unique usernames.
2015-11-04 16:22:47 +01:00
Francesco Siddi
e00e4698ea
Added status property to node_type Project
2015-11-04 16:22:23 +01:00
Francesco Siddi
441b39211b
Support for file upload to Google Cloud Storage
...
All other backends remain available and are still fully compatible with
the File storage infrastructure.
2015-11-04 12:59:08 +01:00
Francesco Siddi
9c18b5cc9f
Added project property for files
...
This property can be combined to the backend for locating the file
within the backed. Originally introduced to support Google Cloud
Storage (where every project is store in its own bucket, named after
the project id).
2015-11-04 12:57:36 +01:00
Francesco Siddi
81f4865b8d
Update to Docker files
...
Force rebuild requirements.txt.
2015-11-04 12:56:07 +01:00
Francesco Siddi
8f311b8a10
Updated migration to support nodes_blog in Project node type
2015-10-30 15:23:51 +01:00
Francesco Siddi
1d62c180d3
Script to add parent property to every node
2015-10-29 19:10:53 +01:00
Francesco Siddi
ac4c74a323
Adding project property to nodes
2015-10-28 20:34:14 +01:00
Francesco Siddi
2bf451c094
Use STORAGE_DIR instead of SHARED_DIR
...
When creating thumbnails, use the data moved to the pillar-only storage
path.
2015-10-28 15:35:08 +01:00