Commit Graph

17 Commits

Author SHA1 Message Date
1a5fcc1744 Refactored content of main __init__ into utils 2016-01-26 15:34:56 +01:00
f2ac8e48e3 Asynchronous push_to_storage for files and images 2015-11-26 19:20:07 +01:00
55b17403f5 Video variations are embedded in files 2015-11-26 17:53:35 +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
b0a976ad54 Fix for undefined keyword 2015-11-09 20:17:51 +01:00
a661c1c107 Renamed path to file_path in File properties 2015-11-05 18:47:36 +01:00
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
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
1d62c180d3 Script to add parent property to every node 2015-10-29 19:10:53 +01:00
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
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
2cc0d0a5b5 Use eve native database driver 2015-10-11 22:16:30 +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
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
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
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