[Zope-CVS] CVS: Products/AdaptableStorage - Zope2SQL.py:1.3

Shane Hathaway shane@zope.com
Tue, 10 Dec 2002 17:52:07 -0500


Update of /cvs-repository/Products/AdaptableStorage
In directory cvs.zope.org:/tmp/cvs-serv29122

Modified Files:
	Zope2SQL.py 
Log Message:
With minor corrections, successfully created a CMF site in a Postgres database.
Awesome. :-)


=== Products/AdaptableStorage/Zope2SQL.py 1.2 => 1.3 ===
--- Products/AdaptableStorage/Zope2SQL.py:1.2	Tue Dec 10 17:27:00 2002
+++ Products/AdaptableStorage/Zope2SQL.py	Tue Dec 10 17:51:37 2002
@@ -141,8 +141,8 @@
 
 class Zope2SQLStorage (ASStorage):
 
-    def __init__(self, **kw):
-        dm, conn, gws = createMapper(**kw)
+    def __init__(self, params='', table_prefix='zodb', volatile=1, **kw):
+        dm, conn, gws = createMapper(params, table_prefix, int(volatile))
         res = StaticResource(dm)
         ASStorage.__init__(self, res, [conn], **kw)