aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/decorators.py
diff options
context:
space:
mode:
authorBrett Smith <brettcsmith@brettcsmith.org>2012-07-08 10:04:06 -0400
committerBrett Smith <brettcsmith@brettcsmith.org>2012-07-08 10:04:06 -0400
commit5bd0adebd0bcf35aa6fa5238b857737134adc075 (patch)
tree94de17c617e4e543b9965821ca1e21ebff1505eb /mediagoblin/decorators.py
parentc7dfd4fba6407d70345c5dc9017e87e472ce6722 (diff)
downloadmediagoblin-5bd0adebd0bcf35aa6fa5238b857737134adc075.tar.lz
mediagoblin-5bd0adebd0bcf35aa6fa5238b857737134adc075.tar.xz
mediagoblin-5bd0adebd0bcf35aa6fa5238b857737134adc075.zip
Prevent non-Unicode SQLAlchemy warnings in most submission tests.
This commit makes test_submission mostly warning-clean.
Diffstat (limited to 'mediagoblin/decorators.py')
-rw-r--r--mediagoblin/decorators.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/decorators.py b/mediagoblin/decorators.py
index 83602c70..b2791083 100644
--- a/mediagoblin/decorators.py
+++ b/mediagoblin/decorators.py
@@ -97,7 +97,7 @@ def get_user_media_entry(controller):
return render_404(request)
media = request.db.MediaEntry.find_one(
{'slug': request.matchdict['media'],
- 'state': 'processed',
+ 'state': u'processed',
'uploader': user._id})
# no media via slug? Grab it via ObjectId
@@ -105,7 +105,7 @@ def get_user_media_entry(controller):
try:
media = request.db.MediaEntry.find_one(
{'_id': ObjectId(request.matchdict['media']),
- 'state': 'processed',
+ 'state': u'processed',
'uploader': user._id})
except InvalidId:
return render_404(request)
@@ -127,7 +127,7 @@ def get_media_entry_by_id(controller):
try:
media = request.db.MediaEntry.find_one(
{'_id': ObjectId(request.matchdict['media']),
- 'state': 'processed'})
+ 'state': u'processed'})
except InvalidId:
return render_404(request)