[Zodb-checkins] CVS: Zope3/lib/python/ZODB - StorageConfig.py:1.2

Jeremy Hylton jeremy@zope.com
Tue, 3 Dec 2002 13:43:35 -0500


Update of /cvs-repository/Zope3/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv23129

Modified Files:
	StorageConfig.py 
Log Message:
If the section has a non-empty name, set args["name"] to section.name.
(from ZODB3)


=== Zope3/lib/python/ZODB/StorageConfig.py 1.1 => 1.2 ===
--- Zope3/lib/python/ZODB/StorageConfig.py:1.1	Sat Nov 23 01:57:02 2002
+++ Zope3/lib/python/ZODB/StorageConfig.py	Tue Dec  3 13:43:34 2002
@@ -65,6 +65,8 @@
     klass = getattr(m, type)
 
     args = {}
+    if section.name:
+        args["name"] = section.name
     for key in section.keys():
         if key.lower() != "type":
             args[key] = section.get(key)