5c6bda1ba3
Tweaks to init code
2016-03-14 17:02:12 +01:00
f90f25d373
Upgraded gcloud package to 0.11.0
2016-03-14 14:51:46 +01:00
086284b883
Code cleanup and improved formatting
2016-03-14 12:13:49 +01:00
ca52e432ff
Moved BLENDER_ID_ENDPOINT to config setting
2016-03-14 12:12:26 +01:00
ece5269558
Removing custom endpoint for file_storage.index
...
This was breaking links for storage backends different than gcs.
2016-03-10 11:51:25 +01:00
168eb848c3
Code cleanup for notifications
...
Also, moving most of the notification parsing on the pillar side, and
toggling it with the optional parse argument.
2016-03-09 16:55:59 +01:00
8cb3928531
Utility to subscribe node owners to notifications
2016-03-09 16:54:52 +01:00
1884f6148e
Removed debug print
2016-03-08 19:28:23 +01:00
4c4ec6c89b
Fixed authorization issue.
...
Authorization wasn't properly checked, allowing more than allowed.
2016-03-08 17:36:21 +01:00
d4ecf556ce
Reduced log level for non-Pillar modules
2016-03-08 15:27:12 +01:00
036116e2d3
Fixed security hole.
...
The file_storage.index() view function didn't sanitize its input. This made
is possible for an attacker to overwrite any file, including the files of
Pillar itself.
2016-03-08 09:29:32 +01:00
bf614e0d54
Configured logging module.
...
It's currently configured very simply, to log to stderr and at DEBUG level
when the app is in debug mode, and INFO otherwise.
2016-03-08 09:24:57 +01:00
65f8bdc6c0
Introducing notifications
2016-03-05 23:22:59 +01:00
20ba507095
Introducing activities model
2016-03-05 23:22:59 +01:00
93439be9ac
Moved unit test to its proper spot, and added @httpretty.activate
2016-03-04 18:46:53 +01:00
da601747bb
Added mocking of Blender ID with HTTPretty
2016-03-04 18:46:53 +01:00
172e8a8ba0
Fixed bug in validate_token(), it now returns the validation status.
...
Also separated on-the-fly creation of user in our database into its
own function.
2016-03-04 18:46:53 +01:00
7ca22691eb
Added a few unit tests for user authentication.
...
Far from complete, and we need a way to mock the Blender ID server, so
that we can auth against a well-known, fake set of users.
2016-03-04 18:46:53 +01:00
1e141492a3
Added unit testing support + moved make_unique_username() to module level
...
Also cleaned up make_unique_username() code to no longer be recursive,
and to correctly handle numerical suffixes ≥ 10.
2016-03-04 18:46:53 +01:00
260cfdbcd5
Delete any file variation found in the file_item document
2016-03-04 15:48:02 +01:00
460cd0265f
Code simplification.
...
Mostly just returning quickly instead of setting a variable and returning
that later in the code.
2016-03-04 12:14:33 +01:00
31a1694ba7
Strip trailing slash from BLENDER_ID_ENDPOINT URL
2016-03-04 12:13:40 +01:00
ef0441b4c7
Updated requirements.
...
Removed some 2nd degree requirements, and updated rsa module to latest
versions (it's backward compatible with the previous version).
2016-03-04 12:13:09 +01:00
6a5f4b2661
Removed some 2nd degree requirements.
...
This makes it possible to install requirements for pillar and pillar-web
in the same virtualenv.
2016-03-02 10:21:37 +01:00
c5eb23749a
Fix for missing dict key
2016-03-01 18:18:50 +01:00
226b7f71a6
Handle InternalServerError on files_make_public_t
2016-03-01 17:44:01 +01:00
8faa6c7384
Skip all exception for files_make_public_t
2016-02-26 21:41:46 +01:00
8dbb046aad
Handle all exception for files_make_public_t
2016-02-26 19:27:31 +01:00
b093f9fd7c
Handle InternalServerError exception on files_make_public_t
2016-02-26 19:13:24 +01:00
45d6318252
Skip indexing if a nodes does not have status published
2016-02-26 18:46:03 +01:00
d9b7310d2d
Manager command to index nodes
2016-02-26 18:38:39 +01:00
ed7fd0de3b
Extended indexing for Nodes
2016-02-26 17:46:11 +01:00
b149a5b3ed
Hack to make thumbnails of size t public
...
This should be fixed as soon as possible, by making the push_to_storage
function data-aware.
2016-02-26 16:59:58 +01:00
eb92d179e8
Introducing indexing for nodes
2016-02-26 16:17:38 +01:00
ea7e5a0955
Updated requirements for algoliashearch library
2016-02-25 15:01:32 +01:00
03ae481e7b
Renamed default database to eve
2016-02-25 15:01:17 +01:00
d76c47afd5
Improving initial installation process
...
This is still work in progress, but the new manage.py setup_db function
allows for guided creation of basic groups and for the admin user.
2016-02-25 12:43:46 +01:00
724a819593
Cast file_id to ObjectIf before query
2016-02-22 17:41:38 +01:00
4dbd804307
Moved file_storage
2016-02-22 17:41:19 +01:00
3308751ed4
Introducing external video encoding
...
It is now possible to specify an encoding backend (at the moment only
zencoder) to take care of video variations encoding. Files transfer
happens directly on CGS (although any storage backend can be
supported). New requirements is the Zencoder Python library.
2016-02-22 16:48:53 +01:00
774bc35206
Parentheses on print statements
2016-02-16 10:54:44 +01:00
c7b6e798c0
Introducing Algolia search for users
...
With the new dependency, algoliasearch, we can push and store on the
Algolia service a limited set of properties from the Users collection.
2016-02-10 16:13:07 +01:00
4e192acea6
Fix for get_video_data
...
Now the function loops through all streams and uses the last video
stream found.
2016-02-08 12:46:23 +01:00
f341d33faf
Fix reference for embedded project in file schema
2016-01-27 17:50:39 +01:00
8a06634839
Introducing project_node_type_has_method
...
Check for a specific request arg, and check generate the
allowed_methods list for the required node_type.
2016-01-26 18:26:18 +01:00
1a5fcc1744
Refactored content of main __init__ into utils
2016-01-26 15:34:56 +01:00
8256ab40dc
Merge branch 'projects'
2016-01-25 16:37:31 +01:00
e295165864
Introducing Projects
...
We are now using a more document-based approach to define projects. In
the new projects collection we store the definition of a project and
embed the node_types. This allows for custom node_types for every
single project. This change has a certain impact on the custom
validators, as well as the permission computation.
Further, Cerberus 0.9.1 is required in order to properly support the
allow_unknown statements in the projects_schema definition.
2016-01-25 16:32:50 +01:00
4ce2d60df8
Added _format_name to handle existing extensions
2016-01-08 15:12:19 +01:00
ff174439c3
Tweaks to management functions
2016-01-08 14:20:07 +01:00