From c56d4b55a169d67a3e5e5aba4271a67f0cb79c6f Mon Sep 17 00:00:00 2001 From: Joar Wandborg Date: Mon, 26 Mar 2012 17:44:08 +0200 Subject: Media type refractors, pep8, lint - Removed THUMB_SIZE, MEDIUM_SIZE constants, depend on configuration values instead. - pep8 refractoring --- mediagoblin/processing.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'mediagoblin/processing.py') diff --git a/mediagoblin/processing.py b/mediagoblin/processing.py index cc8b7f81..989591de 100644 --- a/mediagoblin/processing.py +++ b/mediagoblin/processing.py @@ -27,14 +27,6 @@ from mediagoblin.media_types import get_media_manager _log = logging.getLogger(__name__) -# This might fail if this module is loaded before the global_config -# is parsed although this far it has not. -THUMB_SIZE = (mgg.global_config['media:thumb']['max_width'], - mgg.global_config['media:thumb']['max_height']) - -MEDIUM_SIZE = (mgg.global_config['media:medium']['max_width'], - mgg.global_config['media:medium']['max_height']) - def create_pub_filepath(entry, filename): return mgg.public_store.get_unique_filepath( -- cgit v1.2.3