Added a notice about mgg.global_config perhaps sometime not

being loaded before mediagoblin.processing is imported.
This commit is contained in:
Joar Wandborg 2012-03-08 00:06:37 +01:00
parent 4f4f2531ad
commit 034a0e0b97

View 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'])