776 Commits

Author SHA1 Message Date
aa953f76a1 Cache FlaskInternalApi object on request keyed by authentication token. 2016-10-13 10:01:29 +02:00
10ecb2158e Log error when URLer service is used but not configured. 2016-10-13 10:01:11 +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
26aa155b9e Cache Pillar API Object on request object. 2016-10-12 14:29:47 +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
f4b34f1d02 Error handler: set 'code' and 'description' defaults separately. 2016-10-12 10:22:25 +02:00
4eb8319697 Better logging of OAuth issues, in the hope to figure out what's going on. 2016-10-11 17:09:02 +02:00
5dd49fa5dd Pillar Extensions can now add links to the sidebar. 2016-10-11 16:33:44 +02:00
6429c3df21 Modernised flask.ext.login imports → flask_login 2016-10-11 15:23:40 +02:00
3561cb61c6 Fix favicon 2016-10-10 17:29:13 +02:00
a52c263733 Homepage: Fix long comments 2016-10-10 16:39:36 +02:00
c9d4a06486 Swap Blender Sync with Agent 327 project announcement 2016-10-07 16:42:42 +02:00
8a35fe3a16 Swap blog stream with random featured assets 2016-10-07 15:12:27 +02:00
620107fdc0 If there's no content_type, display node_type
Like in the case of textures, they are not content_type but node_type
2016-10-07 15:06:29 +02:00
14a8be6329 Fix 'Latest Assets' list not being updated
Was simply missing project_id
2016-10-07 15:05:57 +02:00
77b17e31e0 Homepage: Minor style tweaks to make feed a bit more compact 2016-10-07 14:52:39 +02:00
2028891e7a No need to cache Sass, it's so fast anyway 2016-10-07 14:51:46 +02:00
abe0c28a99 Flowplayer: Fix fullscreen icon 2016-10-06 11:35:10 +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
4e0db78ff1 Made the use of the term "Team member" consistent on the proj sharing page.
Also clarified that project owners *and* team members can edit the project,
and that team members can also delete assets.
2016-10-04 12:51:23 +02:00
d1610da5f9 JStree: HREF attribute link to actual node instead of #
This allows things like middle click on an item to load in a separate tab, yay!

Idea and help by Dr. Sybren
2016-10-04 12:38:08 +02:00
73ec464292 py.test: run with -x (stop at first error) and --ff (failed test first) 2016-10-04 11:58:46 +02:00
0de8772c98 Removed __all__, as we didn't keep it up to date anyway. 2016-10-04 11:58:46 +02:00
91b116aa74 Slightly smarter ./gulp script (taken from Attract) 2016-10-04 11:58:46 +02:00
6537332b26 Don't use # as link on group nodes listing, use the actual link 2016-09-30 18:07:36 +02:00
001d310d76 Fix double pushState when browsing group nodes
Was calling displayNode() twice
2016-09-30 18:07:36 +02:00
e2921c8da8 nodes_latest was missing the content_type 2016-09-30 18:07:36 +02:00
d1d48553e5 Fix link to blog items not working 2016-09-30 18:07:36 +02:00
dd58d4ad04 Created AbstractPillarTest.create_project_admin() function. 2016-09-30 12:54:21 +02:00
b429933737 Added 'required_after_creation' Eve schema validator. 2016-09-30 12:54:21 +02:00
2cc22f4f90 Fix scrolling on mobile 2016-09-30 11:28:21 +02:00
e2236864e7 Filter out '^attract_.*' node types from jstree
While we're at it, also filter out comment & post from the query, rather
than later in Python code.
2016-09-29 17:34:24 +02:00
74d86487a9 Added self-building gulp command 2016-09-29 10:01:31 +02:00
d7fe196af0 Some dependency cleanups. 2016-09-29 10:01:15 +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
7931428312 Clipboard icons on pillar-font 2016-09-27 17:01:07 +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
063023c69a PEP8 2016-09-27 12:57:57 +02:00
2c7d2e7dfd Move font-pillar into its own css file
So we can easily link it from attract/flamenco/etc
2016-09-23 17:29:35 +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
91e3ec659f Added ProjectUtils.projectUrl() 2016-09-23 10:12:57 +02:00
e0f92b6185 Don't log entire exception when forwarding a 412 Precondition Failed. 2016-09-23 09:40:05 +02:00
0bf07b4ba4 ProjectUtils: add context
Currently used in Attract for the shots/tasks list
2016-09-22 18:59:55 +02:00
dfe398458b Tutti: Check if algoliaIndex is defined 2016-09-22 18:59:55 +02:00
30215bf87c Tutti: Check if tooltip/popover exist 2016-09-22 18:59:55 +02:00
0f23ee7a08 Added handler for 412 Precondition Failed from SDK. 2016-09-22 18:09:43 +02:00