b77f7564b1
Fixed private but shared projects not showing up in /bcloud/texture-libraries
2016-05-20 11:53:25 +02:00
401e3a3b36
Fixed empty license_{notes,type} properties to {} instead of ''.
2016-05-20 11:28:54 +02:00
44b07b6c6b
Add update_texture_nodes_maps to manage.py
2016-05-19 12:02:08 +02:00
d0b009ef4d
Utilities in manage.py to add node_types and update texture node_type
2016-05-18 17:41:16 +02:00
e9f8090497
Utility to get a node type from a project document
2016-05-18 17:41:16 +02:00
cb87bea47f
Update node_type texture and group_texture
2016-05-18 17:41:16 +02:00
4b1abf5a53
Proper implementation of /bcloud/texture-libraries endpoint.
...
It now also checks for the existence of a group_texture node type,
and whether there are top-level group_texture nodes.
2016-05-18 16:30:14 +02:00
63f8443083
Add trailing comma to last list element.
2016-05-18 16:30:06 +02:00
b4531ab298
Add group_texture node_type on new projects
2016-05-18 14:55:09 +02:00
f448dce9fc
Remove outdated manage.py commands
2016-05-18 14:54:52 +02:00
e35b7711a3
Added rudimentary entry point for texture libraries.
...
It returns those project the user has access to that also have defined
a 'texture' node type. It should also only return those projects that
actually have a 'group_texture' node type defined, and have one more
more 'texture' nodes (i.e. projects that don't contain texture nodes
should not be returned).
2016-05-17 17:59:14 +02:00
81105102f4
Removed double check of auth token.
2016-05-17 16:54:31 +02:00
bd300f6f5e
Pass user's _etag when updating.
2016-05-17 14:06:38 +02:00
277e82c8e6
Added runserver_memlimit management command.
2016-05-17 13:46:39 +02:00
b556caf8dd
Do not configure bugsnag without API key.
2016-05-17 13:46:33 +02:00
1da077422c
Fixed typo in texture node type form_schema['files']
2016-05-17 11:43:31 +02:00
c686c11726
Replaced print statement with log.debug() call.
2016-05-17 11:43:16 +02:00
6c1740de55
Node edit: take texture map type into account when renaming files at GCS.
2016-05-13 15:51:12 +02:00
18f4516d0c
Reordering of texture types and making texture files visible in form.
2016-05-13 15:51:12 +02:00
6061c704c9
Projects: Add texture node type when creating a new project.
2016-05-13 15:51:12 +02:00
c44a1d870b
Update MIME type for .blend to application/x-blender
2016-05-13 11:52:06 +02:00
7eb72c87f5
Check if subscription count is more than 0 to subscribe to notifications
2016-05-11 16:12:14 +02:00
77184bbad0
Never return soft-deleted items in /latest/{assets,comments}
2016-05-11 12:33:59 +02:00
5b2d7447e6
Projects: limit returned projects to allowable projects.
...
Before this, if there was any project returned by a query on /projects
that the user did not have access to, a 403 would be returned. Now we
just don't include that project in the result.
2016-05-11 11:41:19 +02:00
58dbf0b228
Fixed typo
2016-05-10 18:20:01 +02:00
fe074715e1
Simplified files_make_public_t management command.
...
'except Exception: pass' is always bad.
2016-05-10 18:18:09 +02:00
0f0712205c
Make thumbnails (variations of size 't') public.
2016-05-10 18:09:23 +02:00
6a07147e44
Disable XML interface.
...
Some of our code assumes Eve always returns JSON. Now this assumption
actually holds.
2016-05-10 15:06:36 +02:00
d3b3e0ff4f
Commented out strip_link_and_variations(), to wait until we have is_public on files.
2016-05-10 13:38:07 +02:00
9362f9b539
Remove links from returned file docs when user is not subscriber/demo/admin.
...
For unauthenticated/non-subscriber users, image file documents retain
their variations. All other documents have ther variations stripped.
Also the links + expiry info to the original file are removed for all
file types.
2016-05-10 12:35:21 +02:00
62817eec40
Skip renaming file on GCS when testing.
...
This allows running this test while the internet is gone.
2016-05-10 12:33:38 +02:00
b894eb2477
Skip Algolia in unit tests.
...
Unit tests hang when our internet connection dropped.
2016-05-10 10:47:26 +02:00
0faecdb4fe
More explicit assignment to is_private, for easier debugging
2016-05-10 10:47:26 +02:00
0dcb972e76
Project: Don't revert the is_private field.
...
This also reverts the changes of override_is_private_field().
2016-05-10 10:47:26 +02:00
d3f22efd27
Removed project name from project stats
2016-05-09 18:33:56 +02:00
a4ca7c621a
Project stats: show stats for total/private/public projects.
2016-05-09 18:26:26 +02:00
be280d58f9
Fixed output of unicode in projects_stats mgmnt command
2016-05-09 17:53:20 +02:00
72ca0fe69c
Add .blend to mimetypes module at import of file_storage.py
...
Previously we added this in override_content_type() when
`not mimetypes.inited`. However, it seems that this is never performed
when running at production, probably due to some WSGI container also using
the mimetypes module.
2016-05-09 15:31:43 +02:00
82608e60d3
Fixed bug for project['node_type'] permission fetching.
2016-05-09 14:33:55 +02:00
a90f13486a
Fixed typo call to check_permissions()
...
Also added unit test to cover the function containing the typo.
2016-05-09 12:52:44 +02:00
4316c4d450
moved modules.mongo_utils to utils.mongo
2016-05-09 11:41:53 +02:00
369f75c689
Allow project creation by users with role=demo
2016-05-09 11:38:26 +02:00
8d273de4d8
Reduced noisy logging when auth tokens have expired.
2016-05-09 11:28:12 +02:00
d57bad36d5
Revert production hack, as it's no longer necessary.
2016-05-09 11:21:45 +02:00
042b744b6e
Handle JSON request to /p/create
...
The Pillar Python SDK posts JSON, so we should handle that too.
2016-05-09 11:16:20 +02:00
8bb98aa280
Merge branch 'production'
2016-05-07 00:56:27 +02:00
3a4754d28b
Hot fix for the fix.
2016-05-07 00:39:54 +02:00
666a5842a5
Fix for setting is_private on new permission-less projects
2016-05-06 19:11:58 +02:00
402981a6b1
Small fixes
2016-05-06 19:11:21 +02:00
2cdde04a8b
Small code clarifications
2016-05-06 18:28:08 +02:00