storage Config: Stop being backward compatible (beginning).
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Sun, 7 Aug 2011 15:41:24 +0000 (17:41 +0200)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Tue, 9 Aug 2011 11:15:20 +0000 (13:15 +0200)
Chris Webber says "no backward compatibility for this".
So start removing the backward compat stuff.

mediagoblin/init/__init__.py

index b87bd7a434ed98b8104d16428c10c0e500c2035f..32f0194cc5dabf522f336dc6ac124a5eef8255db 100644 (file)
@@ -117,19 +117,11 @@ def setup_storage():
 
     key_short = 'publicstore'
     key_long = "storage:" + key_short
-    if global_config.has_key(key_long):
-        print "New style"
-        public_store = storage_system_from_config(global_config[key_long], None)
-    else:
-        print "old style"
-        public_store = storage_system_from_config(app_config, key_short)
+    public_store = storage_system_from_config(global_config[key_long], None)
 
     key_short = 'queuestore'
     key_long = "storage:" + key_short
-    if global_config.has_key(key_long):
-        queue_store = storage_system_from_config(global_config[key_long], None)
-    else:
-        queue_store = storage_system_from_config(app_config, key_short)
+    queue_store = storage_system_from_config(global_config[key_long], None)
 
     setup_globals(
         public_store = public_store,