aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/process_media
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-06-13 00:36:56 +0200
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-06-13 00:39:41 +0200
commit52426ae01f0439af2833656a74eda70a240d66ae (patch)
tree0b49dec3f6033739e0727366f23480202241d115 /mediagoblin/process_media
parent34d35a23930815438a4e1d8b28ec17016fb938c0 (diff)
downloadmediagoblin-52426ae01f0439af2833656a74eda70a240d66ae.tar.lz
mediagoblin-52426ae01f0439af2833656a74eda70a240d66ae.tar.xz
mediagoblin-52426ae01f0439af2833656a74eda70a240d66ae.zip
Create a Workbench class and use it everywhere.
Some references to Workbench.dir look ugly, I'm happy to hear suggestions there.
Diffstat (limited to 'mediagoblin/process_media')
-rw-r--r--mediagoblin/process_media/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/process_media/__init__.py b/mediagoblin/process_media/__init__.py
index f0a6e511..bd067e39 100644
--- a/mediagoblin/process_media/__init__.py
+++ b/mediagoblin/process_media/__init__.py
@@ -32,8 +32,8 @@ def process_media_initial(media_id):
{'_id': ObjectId(media_id)})
queued_filepath = entry['queued_media_file']
- queued_filename = mgg.workbench_manager.localized_file(
- workbench, mgg.queue_store, queued_filepath,
+ queued_filename = workbench.localized_file(
+ mgg.queue_store, queued_filepath,
'source')
queued_file = file(queued_filename, 'r')