[Zodb-checkins] SVN: ZODB/branches/blob-merge-branch/src/ZODB/config.py Allow the support of multidatabase open calls.

Chris McDonough chrism at plope.com
Sun Sep 25 13:17:57 EDT 2005


Log message for revision 38626:
  Allow the support of multidatabase open calls.
  

Changed:
  U   ZODB/branches/blob-merge-branch/src/ZODB/config.py

-=-
Modified: ZODB/branches/blob-merge-branch/src/ZODB/config.py
===================================================================
--- ZODB/branches/blob-merge-branch/src/ZODB/config.py	2005-09-25 17:15:59 UTC (rev 38625)
+++ ZODB/branches/blob-merge-branch/src/ZODB/config.py	2005-09-25 17:17:57 UTC (rev 38626)
@@ -86,13 +86,13 @@
         self.config = config
         self.name = config.getSectionName()
 
-    def open(self):
+    def open(self, database_name='unnamed', databases=None):
         """Open and return the storage object."""
         raise NotImplementedError
 
 class ZODBDatabase(BaseConfig):
 
-    def open(self):
+    def open(self, database_name='unnamed', databases=None):
         section = self.config
         storage = section.storage.open()
         try:
@@ -100,7 +100,9 @@
                            pool_size=section.pool_size,
                            cache_size=section.cache_size,
                            version_pool_size=section.version_pool_size,
-                           version_cache_size=section.version_cache_size)
+                           version_cache_size=section.version_cache_size,
+                           databases=databases,
+                           database_name=database_name)
         except:
             storage.close()
             raise



More information about the Zodb-checkins mailing list