Commit Graph

722 Commits

Author SHA1 Message Date
Sybren A. Stüvel 40896fc70b Better logging when bad extension class is given.
This was necessary to debug an issue with different unit tests influencing
each other in Attract.
2016-09-20 15:59:39 +02:00
Pablo Vazquez 7598ad0b57 Gulp: Avoid re-building unchanged files by caching the results 2016-09-20 15:17:19 +02:00
Francesco Siddi 4b11aab429 Update cloud headline 2016-09-19 16:53:11 +02:00
Pablo Vazquez ad91e37d14 Art of Blender is selling out! 2016-09-19 12:34:03 +02:00
Sybren A. Stüvel 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
Sybren A. Stüvel 55b2911665 Added .arcconfig for phabricator integration 2016-09-14 09:39:19 +02:00
Pablo Vazquez 1680475d92 Expose License notes on Textures, if any 2016-09-12 18:57:57 +02:00
Pablo Vazquez d116439b57 correct text when there are no hdris 2016-09-12 18:11:25 +02:00
Pablo Vazquez 56c669874d Agent in the frontpage 2016-09-12 18:01:11 +02:00
Sybren A. Stüvel 76b0f5fc46 Moved login-code into a separate function.
This makes it easier to log in users by their token from unittests.
2016-09-08 12:03:51 +02:00
Sybren A. Stüvel 68666f0650 Updated unittest code so that we can create 100% valid projects.
This means also creating a user and groups so that the references are
valid.
2016-09-08 12:03:17 +02:00
Sybren A. Stüvel 4313284dab Added 'hide_none' Jinja filter, which replaces None with an empty string 2016-09-07 17:01:56 +02:00
Sybren A. Stüvel 9e6b998c50 Refactored static file handling so that extensions can provide static files 2016-09-07 16:36:25 +02:00
Sybren A. Stüvel b2e8711ac4 Moved Jinja2 stuff to its own module, and added |undertitle filter. 2016-09-07 16:03:40 +02:00
Sybren A. Stüvel f03566a10f Added template for embedded error 500 2016-09-07 14:57:05 +02:00
Sybren A. Stüvel 2730a7a2b2 Added error handlers for some PillarSDK exceptions. 2016-09-07 12:23:48 +02:00
Sybren A. Stüvel f21b708085 Made it easier for extensions to register multiple blueprints at different URLs
The blueprint's own url_prefix='/xxx' setting is now taken into account.
2016-09-07 11:40:24 +02:00
Sybren A. Stüvel 8a6cd96198 Added pi-users icon + documented regeneration of pillar-font. 2016-09-07 11:14:36 +02:00
Sybren A. Stüvel 4ae36a0dc3 Allow custom template dirs for extensions 2016-09-06 18:39:35 +02:00
Sybren A. Stüvel eac49ab810 Use BLENDER_ID_ENDPOINT to get roles from BlenderID
Also refactored some code.
2016-09-06 17:27:14 +02:00
Sybren A. Stüvel 49c08cba10 Custom error handlers: also properly handle non-Werkzeug exceptions. 2016-09-06 17:10:50 +02:00
Sybren A. Stüvel cf30bb5d62 Use BlenderID-side roles to grant demo role. 2016-09-06 16:42:48 +02:00
Sybren A. Stüvel 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
Pablo Vazquez e04b2ef7ea Fix background color for nav container 2016-09-06 12:41:52 +02:00
Sybren A. Stüvel 52ca2adc19 User admin: actually show the search hit container. 2016-09-06 12:16:25 +02:00
Pablo Vazquez 29a0bed39b Fix background color of node-container on /about 2016-09-06 12:11:47 +02:00
Pablo Vazquez 634ad86fa1 Fix search on blog and tweaks to navbar 2016-09-06 12:04:40 +02:00
Sybren A. Stüvel 574178cffc Prevent accessing /nodes/undefined/view from search pages.
`firstHit.attr('data-hit-id')` can be undefined; in that case we just
ignore the siutation.

Furthermore, I've removed the call to clearTimeout(), as it is only
called after the timeout has been hit, and thus is a no-op.
2016-09-06 11:56:54 +02:00
Sybren A. Stüvel 305d9b44ec re-indented algolia_search.js so that it uses 4-space indents. 2016-09-06 11:52:26 +02:00
Sybren A. Stüvel 3bb55fd3db User admin: properly handle AJAX errors.
Added specific handling for clicking on non-existing users. The styling
might need some tweaking (it's pretty ugly), but then again, it's just
for us admins.
2016-09-06 11:27:49 +02:00
Sybren A. Stüvel 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
Pablo Vazquez 52cc61b143 Use Roboto font for headings as well 2016-09-05 19:40:46 +02:00
Pablo Vazquez e4763d809b Project view: Fix transparent background of tree/sidebar 2016-09-05 18:55:49 +02:00
Pablo Vazquez 4cf7fde5bf Welcome Colin and Beau! 2016-09-05 16:00:45 +02:00
Pablo Vazquez e58f29a9d0 Fix missing pictures on latest blog posts and node updates 2016-09-05 16:00:45 +02:00
Pablo Vazquez fa050da8e2 Display Blog on the sidebar, if available 2016-09-05 16:00:45 +02:00
Sybren A. Stüvel 3d9b9e40d4 Added PillarExtension.setup_app(app)
It's called on each extension after all extensions have been processed,
and after all built-in Pillar modules have had their setup_app() called.
Call order is random.
2016-08-31 16:03:45 +02:00
Sybren A. Stüvel 4cf779e040 Keep reference to loaded extension, and refuse to load twice.
The Pillar extensions are now stored, by their name, in a dictionary.
2016-08-31 16:02:55 +02:00
Sybren A. Stüvel a0cc76259e Renamed TestPillarServer to PillarTestServer
TestXXX classes are seen as unit tests by py.test, so anything that's not
a unit test should not be called TestXXX.
2016-08-31 11:29:16 +02:00
Sybren A. Stüvel 54bc0e87ce Updated test requirements 2016-08-31 11:28:38 +02:00
Sybren A. Stüvel cb5128907c Removed old-src folder, use the last-before-fusion tag instead.
The 'last-before-fusion' tag points to the last revision before the
fusion with Pillar-Web. Any old source can be looked up there.
2016-08-31 11:10:44 +02:00
Sybren A. Stüvel 34921ece76 Added quotes around node type name 2016-08-30 16:00:16 +02:00
Sybren A. Stüvel 5ebec42e6d Removed unused, commented-out code 2016-08-30 15:58:58 +02:00
Sybren A. Stüvel 4529d0597b Gracefully handle nodes of a type for which we don't have a template.
Before, it would simply return a 500 Internal Server Error.
2016-08-30 15:52:55 +02:00
Sybren A. Stüvel 3f9d519753 Added Dummy deploy script for people with a 'git pp' alias
For people with a 'git pp' alias to push to production. This are the
aliases I use to push & deploy changes to production:

    prod = "!git checkout production && git fetch origin production && gitk --all"
    ff = "merge --ff-only"
    pp = "!git push && if [ -e deploy.sh ]; then ./deploy.sh; fi && git checkout master"

Those are handy to make branch switches easy, and to ensure that you don't
accidentally continue work on the production branch after deploying.
2016-08-30 14:37:36 +02:00
Sybren A. Stüvel 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
Sybren A. Stüvel cb84e6f0b7 Allow CLI commands to set the current user to a non-existing admin user. 2016-08-30 14:24:14 +02:00
Sybren A. Stüvel 88b5537df4 Avoid crash when there is no current user 2016-08-30 14:24:14 +02:00
Sybren A. Stüvel 88dd574797 No longer using flask.ext.XXX, more imports have to change too. 2016-08-30 14:24:14 +02:00
Pablo Vazquez 8d6df947c8 User our own jQuery 2016-08-30 14:10:04 +02:00