[Zope3-checkins] CVS: Zope3/src/zodb - config.py:1.1.2.4

Barry Warsaw barry@wooz.org
Tue, 24 Dec 2002 11:19:19 -0500


Update of /cvs-repository/Zope3/src/zodb
In directory cvs.zope.org:/tmp/cvs-serv3196/src/zodb

Modified Files:
      Tag: NameGeddon-branch
	config.py 
Log Message:
Fixed storage_types and added a comment about the format of the entries.


=== Zope3/src/zodb/config.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zodb/config.py:1.1.2.3	Mon Dec 23 18:13:21 2002
+++ Zope3/src/zodb/config.py	Tue Dec 24 11:19:18 2002
@@ -114,14 +114,15 @@
 
 
 storage_types = {
-    'FileStorage': ('zodb.storage.file.FileStorage', convertFileStorageArgs),
-    'MappingStorage': ('zodb.storage.mapping.MappingStorage', None),
-    'ClientStorage': ('zodb.zeo.client.ClientStorage',
-                      convertClientStorageArgs),
-    'BDBFullStorage': ('zodb.storage.bdbfull.BDBFullStorage',
-                       convertBDBStorageArgs),
-    'BDBMinimalStorage': ('zodb.storage.bdbminimal.BDBMinimalStorage',
-                          convertBDBStorageArgs),
+    # A mapping from "type" (i.e. class) to 2-tuple of (module, converter).
+    # converter may be None for no conversion necessary.  type and module are
+    # both strings, and module should be the dotted path for use in an
+    # __import__().
+    'FileStorage'      : ('zodb.storage.file', convertFileStorageArgs),
+    'MappingStorage'   : ('zodb.storage.mapping', None),
+    'ClientStorage'    : ('zodb.zeo.client', convertClientStorageArgs),
+    'BDBFullStorage'   : ('zodb.storage.bdbfull', convertBDBStorageArgs),
+    'BDBMinimalStorage': ('zodb.storage.bdbminimal', convertBDBStorageArgs),
     }