[Zope3-checkins] CVS: Zope3/src/zope/app/startup - sitedefinition.py:1.3

Barry Warsaw barry@wooz.org
Mon, 30 Dec 2002 17:39:30 -0500


Update of /cvs-repository/Zope3/src/zope/app/startup
In directory cvs.zope.org:/tmp/cvs-serv915

Modified Files:
	sitedefinition.py 
Log Message:
useBDBFullStorage(): Add the hooks necessary to run Zope3 under
BDBFullStorage.


=== Zope3/src/zope/app/startup/sitedefinition.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/startup/sitedefinition.py:1.2	Wed Dec 25 09:13:24 2002
+++ Zope3/src/zope/app/startup/sitedefinition.py	Mon Dec 30 17:39:30 2002
@@ -100,6 +100,15 @@
         return []
 
 
+    def useBDBFullStorage(self, _context, **kws):
+        from zodb.config import convertBDBStorageArgs
+        from zodb.storage.bdbfull import DB
+
+        kws = convertBDBStorageArgs(**kws)
+        self._zodb = DB(**kws)
+        return []
+        
+
     def useLog(self, _context, file=DEFAULT_LOG_FILE, level=DEFAULT_LOG_LEVEL):
         """Lets you specify the log file and level to use"""