diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-11-21 21:40:48 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-11-22 22:29:37 +0100 |
commit | 30188321531e1b0d3c78166498702bbd8c7dc2bc (patch) | |
tree | 2aaabcf0f3157a032e316066101f2db819ab09c8 /mediagoblin/decorators.py | |
parent | 4d4e5b435b54fcf0920786a40e190c1748cc2ed1 (diff) | |
download | mediagoblin-30188321531e1b0d3c78166498702bbd8c7dc2bc.tar.lz mediagoblin-30188321531e1b0d3c78166498702bbd8c7dc2bc.tar.xz mediagoblin-30188321531e1b0d3c78166498702bbd8c7dc2bc.zip |
Rename MediaEntry.uploader() to .get_uploader()
The .uploader() method conflicts with the uploader database
field. As we're moving to .FIELD for db field access, this
is a relevant conflict.
So renaming .uploader() to .get_uploader()
Diffstat (limited to 'mediagoblin/decorators.py')
-rw-r--r-- | mediagoblin/decorators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/decorators.py b/mediagoblin/decorators.py index 8f7532ec..1cdce23a 100644 --- a/mediagoblin/decorators.py +++ b/mediagoblin/decorators.py @@ -58,7 +58,7 @@ def user_may_delete_media(controller): """ def wrapper(request, *args, **kwargs): uploader = request.db.MediaEntry.find_one( - {'_id': ObjectId(request.matchdict['media'])}).uploader() + {'_id': ObjectId(request.matchdict['media'])}).get_uploader() if not (request.user['is_admin'] or request.user._id == uploader._id): return exc.HTTPForbidden() |