e5b4ce0890
GoogleCloudStorageBucket.gcs_bucket → _gcs_bucket
...
Added a few FIXME comments where _gcs_bucket is used outside of the class.
2017-03-01 08:56:26 +01:00
27df603299
Started moving processing function in subclasses
2017-03-01 08:56:26 +01:00
4d6bf65a99
Attempt at proper naming
...
Using Bucket and Blob as base classes.
2017-03-01 08:56:26 +01:00
c06533db5b
Breaking stuff by introducting decorator & abstract base class stuff.
2017-03-01 08:56:26 +01:00
b3b9c68486
Fixed uploading of images.
...
Thumbnailing is still broken, though.
2017-03-01 08:56:26 +01:00
aecab0561e
WIP introducing STORAGE_BACKEND
...
We introduce two new classes StorageBackend and FileInStorage, which
are subclassed by CGS and local Pillar. This makes supporting multiple
storage solutions easier.
2017-03-01 08:56:26 +01:00
6765276519
Introducing attachments fixes for blog posts and assets.
...
Requires migration of attachments schema using
python manage.py maintenance upgrade_attachment_schema --all
2017-02-21 18:08:42 +01:00
2b528f0fff
Added pillar.api.utils.bsonify(some_dict)
...
It was used in an experiment in Flamenco as an alternative to JSON; it
might still be used in the future if BSON turns out to be significantly
faster to generate.
2017-01-24 09:19:24 +01:00
129ec94608
Renamed flamenco.jobs to flamenco_jobs
2016-12-14 14:48:37 +01:00
01cc52bba9
Allow user updates in create_service_account() calls.
2016-12-14 14:41:06 +01:00
d9b56f485b
Extend CHECK_PERMISSIONS_IMPLEMENTED_FOR
...
We support flamenco.jobs. This is a temporary workaround until we
implement check permissions in a way that can be extended by extensions.
2016-11-30 23:50:21 +01:00
a93d9be632
Remove whitespace
2016-11-25 12:43:59 +01:00
85bfbdb5e3
Display 10 comments on frontpage
2016-11-24 18:12:16 +01:00
a13937e500
Log error when unable to update home project
2016-11-11 12:44:47 +01:00
b9e27a4cbf
Quote activity verb in log
2016-11-11 08:40:49 +01:00
595a690473
Removed activity 'extra fields', as it wasn't used and half-built.
2016-11-10 09:50:10 +01:00
ab375b2126
Moved node_setattr() from Attract to Pillar
2016-11-09 12:50:30 +01:00
2cc21583d9
On-create activities are only created for Pillar nodes.
...
This allows Attract to use custom on-create activities.
2016-11-02 15:39:16 +01:00
d24677992e
Datetimes in dynamic properties are now timezone-aware (but hardcoded).
2016-11-02 10:52:44 +01:00
8fa135d52e
Add license types and notes to asset node_type
2016-11-01 19:05:14 +01:00
656944f1ce
Allow add_to_project() to take generator for node types
2016-11-01 16:47:55 +01:00
964e807721
Give admin explicit permissions, instead of blindly granting everything.
...
This ensures that the allowed_methods properties are properly set. Admin
users get the union of all permissions given to all groups and users.
2016-11-01 16:47:55 +01:00
3cf71a365f
Forms for attachments work, VERY HACKISH Hardcodedness™
2016-11-01 16:47:55 +01:00
aef7754537
Attachment rendering for posts & node descriptions.
2016-11-01 16:47:55 +01:00
d50d206e77
Gracefully handle non-existing files when renaming asset nodes.
2016-11-01 16:47:55 +01:00
28223159e7
Allow admin users to do everything.
...
This makes things more consistent (previously admins could create projects,
but not nodes in those projects).
2016-11-01 16:47:55 +01:00
a38e053c1a
Added CLI command to create blogs.
2016-11-01 16:47:55 +01:00
bffbbad323
Support Cerberus valueschema in ValidateCustomFields
2016-11-01 16:47:55 +01:00
8fb64c38d6
Removed API-side attachment parsing.
2016-11-01 16:47:55 +01:00
f72890cc59
Define standard set of node types
2016-11-01 16:47:55 +01:00
0929a80f2b
New data structure for attachments.
2016-11-01 16:47:55 +01:00
ff7101c3fe
Small improvements in ValidateCustomFields()
2016-11-01 16:47:55 +01:00
590d075735
New schema for attachments, using propertyschema/valueschema.
2016-11-01 16:47:55 +01:00
fa3406b7d0
only_for_node_type_decorator() now supports checking multiple node types
2016-11-01 16:47:32 +01:00
51c2c1d568
Make it possible for Pillar extensions to add service accounts.
2016-11-01 14:00:00 +01:00
5677ae8532
Prevent errors when notification is linked to non-existing node
2016-10-20 17:43:51 +02:00
e71e6a7b32
API for editing comments via PATCH
2016-10-20 16:22:11 +02:00
8d3c4745aa
Remove unnecessary form_schema fields.
2016-10-20 13:05:43 +02:00
3afeeaccd0
Removed permission keys from node type definitions.
...
This prevents replace_pillar_node_type_schemas() from overwriting existing
permissions.
2016-10-20 13:05:43 +02:00
ea2be0f13d
Major revision of comment system.
...
- Comments are stored in HTML as well as Markdown, so that conversion
only happens when saving (rather than when viewing).
- Added 'markdown' Jinja filter for easy development. This is quite
a heavy filter, so it shouldn't be used (much) in production.
- Added CLI command to update schemas on existing node types.
2016-10-19 16:57:17 +02:00
eea934a86a
Added username to public user fields
2016-10-19 16:57:17 +02:00
96c9e12f7f
doc_diff() optionally no longer reports differences between falsey values.
...
If falsey_is_equal=True, all Falsey values compare as equal, i.e. this
function won't report differences between DoesNotExist, False, '', and 0.
2016-10-12 17:09:48 +02:00
7c310e12ef
Added util function to compute the difference between two dicts.
2016-10-12 16:01:30 +02:00
0146b568c0
Allow extra fields in activities.
2016-10-12 14:29:28 +02:00
ade62033ba
Added only_for_node_type_decorator(node_type_name) decorator factory func
...
This allows you to create a decorator for Eve hooks. The decorator returns
a decorator that checks its first argument's node type.
If the node type is not of the required node type, returns None,
otherwise calls the wrapped function.
2016-10-12 13:41:16 +02:00
8aab88bdc2
Activities now have explicit project ID
...
This allows for directly querying activity on a certain project.
Used in Attract for task/shot activity streams.
2016-10-12 13:40:27 +02:00
c71186f318
Allow project membership to be managed by ppl with admin role.
...
This was already mentioned as possible in the frontend, but not implemented
in the backend.
2016-10-05 14:36:07 +02:00
0de8772c98
Removed __all__, as we didn't keep it up to date anyway.
2016-10-04 11:58:46 +02:00
b429933737
Added 'required_after_creation' Eve schema validator.
2016-09-30 12:54:21 +02:00
dcef372e4f
Gracefully handle project without node types.
...
This can happen when a projection excludes node types.
2016-09-29 09:55:49 +02:00