diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-08-09 12:13:53 -0500 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-16 15:30:15 -0700 |
commit | 85ead8ac3cf59aeee12ddd3b33ecfeb03c3aa946 (patch) | |
tree | d41cbce28dab9eb632153ec7659137ad5b977567 /mediagoblin/processing | |
parent | 58bacb33aca6505673f90460d31811ed487bcb4c (diff) | |
download | mediagoblin-85ead8ac3cf59aeee12ddd3b33ecfeb03c3aa946.tar.lz mediagoblin-85ead8ac3cf59aeee12ddd3b33ecfeb03c3aa946.tar.xz mediagoblin-85ead8ac3cf59aeee12ddd3b33ecfeb03c3aa946.zip |
"initial" reprocessing subcommand now works!
We are on our way now to a working reprocessing system under this
redesign!
This commit sponsored by Bjarni RĂșnar Einarsson. Thank you!
Diffstat (limited to 'mediagoblin/processing')
-rw-r--r-- | mediagoblin/processing/__init__.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mediagoblin/processing/__init__.py b/mediagoblin/processing/__init__.py index 66ef2a53..95622b9d 100644 --- a/mediagoblin/processing/__init__.py +++ b/mediagoblin/processing/__init__.py @@ -14,6 +14,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from collections import OrderedDict import logging import os @@ -153,7 +154,7 @@ class ProcessingManager(object): """ def __init__(self): # Dict of all MediaProcessors of this media type - self.processors = {} + self.processors = OrderedDict() def add_processor(self, processor): """ @@ -172,9 +173,12 @@ class ProcessingManager(object): """ return [ processor - for processor in self.processors.keys() + for processor in self.processors.values() if processor.media_is_eligible(entry)] + def list_all_processors(self): + return self.processors.values() + def gen_process_request_via_cli(self, subparser): # Got to figure out what actually goes here before I can write this properly pass |