diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-08-09 17:30:52 -0500 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-16 15:30:16 -0700 |
commit | d1e9913b71a6f3b7bb41f5eee1051093b92fcd8a (patch) | |
tree | c4ad9e59611368258b0a6f25306a0c927621c87c /mediagoblin/gmg_commands/reprocess.py | |
parent | 4ba5bdd96ef3703d8da216ca3dd92f080214f164 (diff) | |
download | mediagoblin-d1e9913b71a6f3b7bb41f5eee1051093b92fcd8a.tar.lz mediagoblin-d1e9913b71a6f3b7bb41f5eee1051093b92fcd8a.tar.xz mediagoblin-d1e9913b71a6f3b7bb41f5eee1051093b92fcd8a.zip |
Should be enough to get to the point where you can actually initialize a processing command now.
However, it doesn't celery task-ify it...
This commit sponsored by Catalin Cosovanu. Thank you!
Diffstat (limited to 'mediagoblin/gmg_commands/reprocess.py')
-rw-r--r-- | mediagoblin/gmg_commands/reprocess.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mediagoblin/gmg_commands/reprocess.py b/mediagoblin/gmg_commands/reprocess.py index 0d8db858..6d04427e 100644 --- a/mediagoblin/gmg_commands/reprocess.py +++ b/mediagoblin/gmg_commands/reprocess.py @@ -262,7 +262,8 @@ def run(args): manager_class = hook_handle(('reprocess_manager', media_type)) manager = manager_class() - # TOOD: Specify in error + # TODO: (maybe?) This could probably be handled entirely by the + # processor class... try: processor_class = manager.get_processor( args.reprocess_command, media_entry) @@ -277,9 +278,9 @@ def run(args): reprocess_parser = processor_class.generate_parser() reprocess_args = reprocess_parser.parse_args(args.reprocess_args) - - import pdb - pdb.set_trace() + reprocess_request = processor_class.args_to_request(reprocess_args) + processor = processor_class(manager, media_entry) + processor.process(**reprocess_request) def reprocess(args): |