Added a notice about mgg.global_config perhaps sometime not
authorJoar Wandborg <git@wandborg.com>
Wed, 7 Mar 2012 23:06:37 +0000 (00:06 +0100)
committerJoar Wandborg <git@wandborg.com>
Wed, 7 Mar 2012 23:06:37 +0000 (00:06 +0100)
being loaded before mediagoblin.processing is imported.

mediagoblin/processing.py

index ff5eb00a1c984339a96a7d2b807032355a066337..cc8b7f813ed18fe15e473b05bb30268c4bed7794 100644 (file)
@@ -27,6 +27,8 @@ 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'])