138 Commits

Author SHA1 Message Date
2ad8c5458a New settings for user model
Removed first_name and last_name in favor of full_name. Also tweaked
response handling from validation endpoint.
2015-10-13 19:40:25 +02:00
f8e7e7ff12 Refactored files to files_collection for better clarity
Also, we inherit the backend property from the parent file when
creating variations.
2015-10-13 11:48:47 +02:00
165af08e12 Removed debug print 2015-10-13 11:48:11 +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
05848ae71f New allowed_methods value for nodes
If we specify the append_allowed_methods when running check permissions
on a node, the node will get a allowed_methods list containing the
methods granted to the current user for that resource.
2015-10-12 18:27:16 +02:00
42e0c0b3f2 Tweaks to the 000-default.conf
Commenting unused XSendFile statements.
2015-10-12 18:25:50 +02:00
7f6a853024 Fix for wrong permissions var name 2015-10-11 23:30:56 +02:00
72d2f9adfe Public item methods for organisations and groups 2015-10-11 23:30:41 +02:00
1c011b45ff Removed previous authentication logic
Should not have functional changes.
2015-10-11 22:52:57 +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
474ddfc7af Update to requirements.txt
Added ndg-httpsclient package to surppress SSL warnings.
2015-10-11 22:17:02 +02:00
2cc0d0a5b5 Use eve native database driver 2015-10-11 22:16:30 +02:00
919083e0e9 Fix to convert_properties, which was not being called properly 2015-10-10 16:27:02 +02:00
c2e707661b Enabling XSendFile on the Apache conf 2015-10-08 18:28:17 +02:00
33a268ae81 Added libapache2-mod-xsendfile to production Dockerfile 2015-10-08 15:16:00 +02:00
9e790e3013 Actual implementation of send_from_directory 2015-10-08 15:06:12 +02:00
362e8faf7b Replace send_static_file with send_from_directory
This change is needed since our static dir is outside of the
application domain.
2015-10-08 14:52:21 +02:00
19500f6a80 Updating config.py.example 2015-10-08 14:41:26 +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
6d32dc2894 Removed unused binary_files entry point 2015-10-08 12:46:38 +02:00
c27d4f830a Tweaks to runserver.wsgi 2015-10-08 10:27:52 +02:00
61bf87188a Explicit settings.py declaration
This is done so that we can load the settings.py on a wsgi instance.
2015-10-08 10:26:22 +02:00
14bc00a385 Tweaks to runserver.wsgi 2015-10-08 09:37:45 +02:00
70dc0a2175 Minor refactoring of authentication functions 2015-10-08 09:24:34 +02:00
0d7f92006e Cleanup of settings.py 2015-10-08 09:24:02 +02:00
5d8bd6dd76 Cleanup of runserver.wsgi 2015-10-08 09:23:52 +02:00
06b7df4d5b Tweaks to default.conf for Apache 2015-10-07 20:13:11 +02:00
d6ea8ea1dc New runserver.wsgi for running on Apache 2015-10-07 20:01:42 +02:00
b4b995d108 Adding flu to requirements.txt 2015-10-07 19:58:54 +02:00
132cd15bcf Update to Dockerfile
Was missing Apache defaults.
2015-10-07 19:34:46 +02:00
dc215134fc New Dockerfiles for development and production 2015-10-07 11:10:58 +02:00
1bda2142cd Updates to manage.py
Tweaks to node_type comments validation code.
2015-10-06 17:37:07 +02:00
a867aee026 Add libffi-dev to Dockerfile 2015-10-06 17:37:07 +02:00
ae5797146d Email attribute for organization 2015-10-05 19:57:53 +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
89a9509657 Improved debug print for node importer 2015-09-25 10:46:28 +02:00
c2e0ae4002 File processing
Introducing the asset of type file creation. This involves making a
node collection entry of type asset, as well as a file collection
entry, plus all the needed variations if such file is an image or a
video. Further, depending on the storage backend (pillar or other) we
synchronise the files there using rsync. Currently this functionality
is available only via pillar-web, since a web interface is needed to
upload the file in a storage folder, which is shared between the two
applications.
2015-09-24 15:45:57 +02:00
71dd30fa75 Short summary for the project node 2015-09-22 10:21:49 +02:00
9ee8d9a20b Tweaks to manage.py for import script 2015-09-12 01:37:16 +02:00
7d950d8fef Renamed project picture properties 2015-09-11 21:15:10 +02:00
3f06fa7b7a Example config for UPLOADS_LOCAL_STORAGE_THUMBNAILS 2015-09-11 15:17:23 +02:00
2470af6ab2 ContentType to content_type rename 2015-09-11 15:16:10 +02:00
00f24bb57e Initial commit for thumbnailing system 2015-09-11 15:04:25 +02:00
4e92cfe6b6 Fix for static files served by server 2015-09-10 21:28:54 +02:00
6382d1dbf5 Fix for hash_file_path when not starting with forward slash 2015-09-10 20:46:18 +02:00
f9203c5193 Tweaks to manage.py to import project nodes 2015-09-10 16:36:45 +02:00
aa3f8e6837 Migration script and utils for CDN link protection 2015-09-10 12:47:29 +02:00
7cecfbe4e0 Improved support for files
We updated the way files are stored in the files collection. Any
derived variation of a file (different encoding or size) is stored as
new record, referencing the original as a parent.
We also added a generate_link method, which is in charge of providing
the client API with the actual link to the backend specified by the
file.
2015-09-08 15:06:45 +02:00