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
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