aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/request.py
Commit message (Collapse)AuthorAgeFilesLines
* Require uploader privileges to upload media to APIJessica Tallon2014-07-221-2/+16
|
* Add basic upload image capabilitiesxray72242014-07-221-1/+1
|
* Cleans up some of the OAuth codexray72242013-07-111-9/+0
|
* Finishes most of oauth, just decorator to completexray72242013-07-111-0/+10
|
* Adds more support for oauth - access_token & decorators still to doxray72242013-07-111-1/+1
|
* Adds oauth support up until authorizationxray72242013-07-111-0/+17
|
* Back sessions with It's Dangerous.Brett Smith2013-03-241-1/+1
| | | | This is a contribution to #668.
* Better Py3 compat: d.has_key(k) -> k in dElrond2013-01-301-2/+1
| | | | | | | | py3 does not have dict.has_key any more. You have to use "key in dict" instead. As that works in python2 as well, let's use that. Also some small bits of pep8.
* Move db.sql.models* to db.models*Sebastian Spaeth2013-01-071-1/+1
|
* Remove ObjectId from the treeSebastian Spaeth2012-12-251-1/+1
| | | | | | | This was one of the last remaining Mongo holdouts and has been removed from the tree herewith. Good bye, ObjectId. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Remove InvalidIdSebastian Spaeth2012-12-251-9/+3
| | | | | | It was a NoOp in our Non-mongo world. So it is safe to remove. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Move DBModel._id -> DBModel.idSebastian Spaeth2012-12-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | We were refering to model._id in most of the code base as this is what Mongo uses. However, each use of _id required a) fixup of queries: e.g. what we did in our find() and find_one() functions moving all '_id' to 'id'. It also required using AliasFields to make the ._id attribute available. This all means lots of superfluous fixing and transitioning in a SQL world. It will also not work in the long run. Much newer code already refers to the objects by model.id (e.g. in the oauth plugin), which will break with Mongo. So let's be honest, rip out the _id mongoism and live with .id as the one canonical way to address objects. This commit modifies all users and providers of model._id to use model.id instead. This patch works with or without Mongo removed first, but will break Mongo usage (even more than before) I have not bothered to fixup db.mongo.* and db.sql.convert (which converts from Mongo to SQL) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Another .one -> .find_oneElrond2012-03-131-2/+6
| | | | | | | | | | | | | | | | | Same idea as in the previous commit. Joar caught this one. To reproduce 1. Create a user with an all-decimal ObjectId in mongo 2. Login using that user, while mongodb is enabled. 3. Switch instance to sql. 4. Restart. 5. Refresh any page. This will error, because no user with that object id exists any more. While around, improved logging.
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Drop sessions with invalid ObjectIdsElrond2012-01-141-4/+8
| | | | | | | | The session can contain invalid objectids when switching a more or less live instance (with logged in users) from mongo to sql or vice versa. So drop the complete session and force the user to login again.
* Finished splitting util.py into separate files.Aaron Williamson2011-10-011-0/+37