865 Commits

Author SHA1 Message Date
8d9a23b7b9 PEP8 formatting for the entire project.
Conflicts:
	pillar/application/modules/file_storage.py
2016-03-21 12:26:11 +01:00
9bb95ab054 Move actor_user parsing on the server side
This is done to prevent excessive load from clients requesting
additional info for the actor_user right after they query for a list of
notifications.
2016-03-18 18:48:14 +01:00
b495552ae4 PEP8 formatting 2016-03-18 18:48:14 +01:00
b8bcd0c5fe made manage.py executable 2016-03-18 16:34:36 +01:00
3334761ea7 PEP8 formatting 2016-03-15 16:17:27 +01:00
e06a9fdf34 Strip trailing slash from BLENDER_ID_ENDPOINT and removed SystemUtility
The xxxUtility classes are silly, they should be removed or replaced
by Python modules.
2016-03-15 10:58:47 +01:00
8d15d0750c Auto-detect Eve settings in manage.py 2016-03-15 10:52:46 +01:00
ab8b32af7f Nicer logging configuration.
How the timestamp is logged, and the requests handled by werkzeug too.
2016-03-15 10:30:29 +01:00
43453ff666 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	pillar/config.py.example
2016-03-15 10:21:04 +01:00
1593e5c09d Update to config.py.example 2016-03-15 10:20:28 +01:00
e73e8ccc31 Streamlined some GCloud credential configuration 2016-03-15 10:18:25 +01:00
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