692 Commits

Author SHA1 Message Date
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
52cc61b143 Use Roboto font for headings as well 2016-09-05 19:40:46 +02:00
e4763d809b Project view: Fix transparent background of tree/sidebar 2016-09-05 18:55:49 +02:00
4cf7fde5bf Welcome Colin and Beau! 2016-09-05 16:00:45 +02:00
e58f29a9d0 Fix missing pictures on latest blog posts and node updates 2016-09-05 16:00:45 +02:00
fa050da8e2 Display Blog on the sidebar, if available 2016-09-05 16:00:45 +02:00
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
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
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
54bc0e87ce Updated test requirements 2016-08-31 11:28:38 +02:00
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
34921ece76 Added quotes around node type name 2016-08-30 16:00:16 +02:00
5ebec42e6d Removed unused, commented-out code 2016-08-30 15:58:58 +02:00
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
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
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
88dd574797 No longer using flask.ext.XXX, more imports have to change too. 2016-08-30 14:24:14 +02:00
8d6df947c8 User our own jQuery 2016-08-30 14:10:04 +02:00
b9b993fe4a Extension system: allow empty Eve settings.
Extensions are now able to return an empty dict from their eve_settings()
method.
2016-08-30 13:55:43 +02:00
2c62bd4016 When replying, use @username only 2016-08-30 13:54:59 +02:00
06ed6af2a9 Use Blender Cloud add-on version from config 2016-08-30 12:17:59 +02:00
32c130ed93 Fall back to application/octet-stream when there is no content-type header 2016-08-26 17:57:52 +02:00
634b233685 mass_copy_between_backends: Also catch unexpected exceptions, and simply move on to the next file. 2016-08-26 17:50:40 +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
ff692d287c Added 'check_cdnsun' management command.
This command performs a HEAD on each file stored at CDNSun, including its
variations. Logs missing variations and missing main files (but only when
there are no variations).
2016-08-26 14:16:05 +02:00
1fe86fa000 backup-db.sh now uses the new 'cloud' database 2016-08-24 14:50:08 +02:00
04c9c010f0 p.view_node(): check node_id for validity, before sending it to the API
This prevents a pillarsdk.exceptions.MethodNotAllowed exception, which
would result in a 500 Internal Server Error on the frontend.
2016-08-24 14:49:30 +02:00
b6c623cca8 Don't import every function from pillar.web.utils individually.
Instead, just "from pillar.web import utils" and then use utils.X to
get to the util function.
2016-08-24 14:26:47 +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
d7b71e38e8 Don't show upvote button on own comment 2016-08-23 16:25:09 +02:00
07691db874 Check subscription status on login. 2016-08-23 16:09:47 +02:00
dcbefc33ae Revert an oops in f3bf380bb7fa66b63010e3f6b3b477a8943479e7 2016-08-23 14:57:11 +02:00
751c692e6a Use urlparse.urlunsplit() to join url parts together.
This also works when there is no scheme and no hostname.
2016-08-23 14:34:15 +02:00
00a34e7e24 py.test now ignores node.js tests
There's one file node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py
which would otherwise be picked up by py.test.
2016-08-23 14:33:45 +02:00
2e0ba4c6cd test_sdk: load BlenderDesktopLogo.png from the correct path 2016-08-23 14:32:59 +02:00
9d1181330b Fix T49138: "learn more" buttons break history / back-button
The "learn more" links are now actually links, and the location is simply
set using `window.location.ref = url` instead of `window.location.replace()`.
2016-08-23 14:09:20 +02:00
f3bf380bb7 current_user.is_authenticated is a function, and thus should be called. 2016-08-23 14:09:20 +02:00
27eee380d2 Missing pillar-font 2016-08-23 13:56:35 +02:00
57620fd49a Added some more documentation for refresh_backend_links mgmt cmd 2016-08-23 12:57:49 +02:00
becf7e6381 manage.py refresh_backend_links: properly set up logging 2016-08-23 12:06:59 +02:00