Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin

This commit is contained in:
Aditi Mittal 2013-09-09 21:53:56 +05:30
commit 728516261a
3 changed files with 13 additions and 4 deletions

View File

@ -60,7 +60,7 @@ class CommonAsciiProcessor(MediaProcessor):
# Conversions subdirectory to avoid collisions
self.conversions_subdir = os.path.join(
self.workbench.dir, 'convirsions')
self.workbench.dir, 'conversions')
os.mkdir(self.conversions_subdir)
# Pull down and set up the processing file

View File

@ -144,7 +144,7 @@ class CommonImageProcessor(MediaProcessor):
## @@: Should this be two functions?
# Conversions subdirectory to avoid collisions
self.conversions_subdir = os.path.join(
self.workbench.dir, 'convirsions')
self.workbench.dir, 'conversions')
os.mkdir(self.conversions_subdir)
# Pull down and set up the processing file

View File

@ -14,7 +14,13 @@
# 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
# Use an ordered dict if we can. If not, we'll just use a normal dict
# later.
try:
from collections import OrderedDict
except:
OrderedDict = None
import logging
import os
@ -187,7 +193,10 @@ class ProcessingManager(object):
"""
def __init__(self):
# Dict of all MediaProcessors of this media type
self.processors = OrderedDict()
if OrderedDict is not None:
self.processors = OrderedDict()
else:
self.processors = {}
def add_processor(self, processor):
"""