2e4c5b2663
Split Node.create_asset_from_file and added direct uploading from file obj
...
Node.create_asset_from_file() is split such that the actual file upload is
handled by File.upload_to_project(). This now also supports directly
uploading from a file object, which could be an io.BytesIO() object to
upload from RAM.
2016-07-07 11:08:30 +02:00
03fab52da2
Prevent KeyError when thumbnail has no link.
...
This can happen when the link isn't refreshing properly. It's better to
show an empty thumbnail than a 500 Internal Server Error.
2016-05-31 17:57:08 +02:00
8312388641
Removed File.thumbnail_file in favour of File.thumbnail
2016-05-13 10:51:26 +02:00
a9920fa76a
Files: Get thumbnails from variations, rather than from 'link' property
...
The 'link' property might not exist, for example when a user is not a
Cloud subscriber.
2016-05-10 12:45:27 +02:00
20a9c61fac
Include link & link_expires in mandatory projections for File.
2016-03-22 12:41:41 +01:00
bdecff27d4
Added downloading thumbnails to file
2016-03-09 14:00:59 +01:00
8c34f04bc6
Adds generic way of adding extra projections to Pillar queries
2016-03-09 14:00:33 +01:00
949f140981
Simplified thumbnail code
2016-03-09 13:59:47 +01:00
4179bf2bd8
Add required projections to File.find()
...
Without these, Pillar will throw KeyErrors.
2016-03-09 12:42:19 +01:00
928e6d06f8
Allow use of internal file variations
2015-11-25 16:15:07 +01:00
84e94a29c1
Now the thumbnail function support multiple backends
2015-11-04 12:54:24 +01:00
33b34110a1
Fix for thumbnail extension generation
2015-10-08 14:17:22 +02:00
394bc2a44c
Updated entry point for file storage
2015-09-25 10:46:47 +02:00
1989a8edbf
New thumbnail function based only on filename parsing
2015-09-11 15:38:48 +02:00
f72cbd77f4
Added call to retrieve thumbnails for file nodes of type image
2015-09-11 15:04:49 +02:00
b12699a714
Removed debug prints
2015-09-10 20:44:57 +02:00
680195c7b4
Added children function
...
Allows to retrieve children of a file record.
2015-09-08 15:09:05 +02:00
991cc27e30
Renaming to Pillar SDK.
2015-08-31 19:25:01 +02:00