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
407aefb9ad
Added CLI command for moving top-level nodes between projects.
...
Also introduces a slightly nicer way to get the database interface, and
an object-oriented way to allow dependency injection.
2016-09-27 12:57:57 +02:00
c64fbf61ba
Removed project node type
2016-09-27 12:57:57 +02:00
7968c6ca37
Added node_type_utils to assign permissions to certain node types.
...
This separates "mechanism" from "policy".
2016-09-23 17:13:26 +02:00
78824c9c2a
Allow extensions to define custom project properties
2016-09-20 15:59:39 +02:00
df8afb8b14
Append license notes to Algolia index
...
So we can keep nodes without description or uploaded by other users (like
textures), with clean names and still be able to search them easily by
their copyright notes.
Reviewers: sybren, fsiddi
Reviewed By: sybren, fsiddi
Differential Revision: https://developer.blender.org/D2225
2016-09-14 09:39:19 +02:00
ab5a4a6b6c
Custom error pages.
...
These make a distinction between API requests on /api/ (which will return
a JSON response) and other requests (which will return HTML).
Fixes T49212
2016-09-06 14:22:52 +02:00
486686f1f9
File upload: Removed JS-side file size check.
...
Instead, the size of the entire HTTP request body is checked against the
maximum file size. This allows for slightly smaller files (in the order
of 200-300 bytes), which shouldn't be noticeable given our 32 MiB limit
for non-subscribers. This check is performed before accessing
request.files[], and thus before the file even starts uploading.
This also allows unlimited file uploads to subscribers and demo users.
This was already possible using the API, so now the web interface is
consistent. Limits can be set using config[_local].py.
This closes T49264: Allow large uploads for admins
2016-09-06 10:33:28 +02:00
3039aef7d3
Removed Attract node types.
...
Those are moved into the new Blender Cloud server's Attract module.
2016-08-30 14:24:14 +02:00
cb84e6f0b7
Allow CLI commands to set the current user to a non-existing admin user.
2016-08-30 14:24:14 +02:00
88b5537df4
Avoid crash when there is no current user
2016-08-30 14:24:14 +02:00
32c130ed93
Fall back to application/octet-stream when there is no content-type header
2016-08-26 17:57:52 +02:00
eb7b875122
Copying files to other backend now works
2016-08-26 15:52:02 +02:00
c4a3601939
Broken file_storage.py up into file_storage/{__init__,moving}.py
2016-08-26 15:36:34 +02:00
225f9ae054
WIP for change file backends
2016-08-26 15:36:34 +02:00
163db3f2b8
Let generated links for 'unittest' backend actually be a valid link.
2016-08-26 15:35:18 +02:00
dd6fc8bde4
generate_link: warn when GCS blob can't be found.
2016-08-26 15:34:58 +02:00
9b2a419d9b
Extra debug logging for file uploads
2016-08-24 11:33:02 +02:00
d5cf3b8246
Moved TLS cert file to post() call instead of session.
...
Another way to make it work is to set it on the session, and explicitly
specify verify=True in the post() call.
2016-08-23 17:45:31 +02:00
0d3ed3af2c
Explicitly use certificate chain.
2016-08-23 17:45:08 +02:00
751a321aa6
Document return type
2016-08-23 17:42:42 +02:00
207d821564
Override image/x-exr mimetype with application/x-exr
...
This prevents us from handling EXR files as images, at least until the
time when we can properly thumbnail those.
2016-08-23 17:41:56 +02:00
2c5dc34ea2
Introducing Pillar Framework
...
Refactor of pillar-server and pillar-web into a single python package. This
simplifies the overall architecture of pillar applications.
Special thanks @sybren and @venomgfx
2016-08-19 09:19:06 +02:00