From 738cc499261e60a111f4ab76ebf94576d448e01c Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Wed, 28 Aug 2013 08:14:26 -0700 Subject: [PATCH] ascii media_type now have their own config_spec.ini --- mediagoblin/config_spec.ini | 3 --- mediagoblin/media_types/ascii/config_spec.ini | 4 ++++ mediagoblin/media_types/ascii/processing.py | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 mediagoblin/media_types/ascii/config_spec.ini diff --git a/mediagoblin/config_spec.ini b/mediagoblin/config_spec.ini index 1837a89b..9ad44fc6 100644 --- a/mediagoblin/config_spec.ini +++ b/mediagoblin/config_spec.ini @@ -104,9 +104,6 @@ max_height = integer(default=640) max_width = integer(default=180) max_height = integer(default=180) -[media_type:mediagoblin.media_types.ascii] -thumbnail_font = string(default=None) - [media_type:mediagoblin.media_types.pdf] pdf_js = boolean(default=True) diff --git a/mediagoblin/media_types/ascii/config_spec.ini b/mediagoblin/media_types/ascii/config_spec.ini new file mode 100644 index 00000000..24b05053 --- /dev/null +++ b/mediagoblin/media_types/ascii/config_spec.ini @@ -0,0 +1,4 @@ +[plugin_spec] +thumbnail_font = string(default=None) + + diff --git a/mediagoblin/media_types/ascii/processing.py b/mediagoblin/media_types/ascii/processing.py index 9b6b3ad4..f42edfdd 100644 --- a/mediagoblin/media_types/ascii/processing.py +++ b/mediagoblin/media_types/ascii/processing.py @@ -55,8 +55,8 @@ class CommonAsciiProcessor(MediaProcessor): acceptable_files = ['original', 'unicode'] def common_setup(self): - self.ascii_config = mgg.global_config[ - 'media_type:mediagoblin.media_types.ascii'] + self.ascii_config = mgg.global_config['plugins'][ + 'mediagoblin.media_types.ascii'] # Conversions subdirectory to avoid collisions self.conversions_subdir = os.path.join( -- 2.25.1