[Zodb-checkins] CVS: Packages/bsddb3Storage - custom_zodb.py:1.2

barry@digicool.com barry@digicool.com
Sat, 28 Apr 2001 01:54:38 -0400 (EDT)


Update of /cvs-repository/Packages/bsddb3Storage/docs
In directory korak:/tmp/cvs-serv26554

Modified Files:
	custom_zodb.py 
Log Message:
Updated samples.



--- Updated File custom_zodb.py in package Packages/bsddb3Storage --
--- custom_zodb.py	2000/12/11 22:09:15	1.1
+++ custom_zodb.py	2001/04/28 05:54:37	1.2
@@ -1,7 +1,11 @@
-from Products.bsddb3Storage.Packless import Packless
-from bsddb3 import db
+# Uncomment the line corresponding to the storage you want to use
+# This syntax requires Python 2.x
+#
+#from bsddb3Storage.Packless import Packless as ConcreteStorage
+#from bsddb3Storage.Minimal  import Minimal  as ConcreteStorage
+from bsddb3Storage.Full     import Full     as ConcreteStorage
 
-m = Packless
-env='var/bsddb3storage'
+import os
+env = os.path.join('var', 'bsddb3Storage')
 
-Storage=m(name='PacklessBerkeleyStorage', env=env)
+Storage = ConcreteStorage(name='BerkeleyStorage', env=env)



--- Updated File custom_zodb.py in package Packages/bsddb3Storage --
--- custom_zodb.py	2000/12/11 22:09:15	1.1
+++ custom_zodb.py	2001/04/28 05:54:37	1.2
@@ -1,7 +1,11 @@
-from Products.bsddb3Storage.Packless import Packless
-from bsddb3 import db
+# Uncomment the line corresponding to the storage you want to use
+# This syntax requires Python 2.x
+#
+#from bsddb3Storage.Packless import Packless as ConcreteStorage
+#from bsddb3Storage.Minimal  import Minimal  as ConcreteStorage
+from bsddb3Storage.Full     import Full     as ConcreteStorage
 
-m = Packless
-env='var/bsddb3storage'
+import os
+env = os.path.join('var', 'bsddb3Storage')
 
-Storage=m(name='PacklessBerkeleyStorage', env=env)
+Storage = ConcreteStorage(name='BerkeleyStorage', env=env)