ascii media_type now have their own config_spec.ini
authorRodney Ewing <ewing.rj@gmail.com>
Wed, 28 Aug 2013 15:14:26 +0000 (08:14 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Thu, 29 Aug 2013 15:22:16 +0000 (08:22 -0700)
mediagoblin/config_spec.ini
mediagoblin/media_types/ascii/config_spec.ini [new file with mode: 0644]
mediagoblin/media_types/ascii/processing.py

index 1837a89b4e4f4425901b308a662eed94d5059d30..9ad44fc6a4017d1a9c775f5675894d3fa0abb6ff 100644 (file)
@@ -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 (file)
index 0000000..24b0505
--- /dev/null
@@ -0,0 +1,4 @@
+[plugin_spec]
+thumbnail_font = string(default=None)
+
+
index 9b6b3ad4ac6f1ef0ad80c70b81a2824ff633709a..f42edfdd8b0c33038ddcf350aa777af368d3074e 100644 (file)
@@ -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(