[Zope-CVS] CVS: Products/Ape/lib/apelib/tests - testzope2sql.py:1.5
   
    Shane Hathaway
     
    shane@zope.com
       
    Mon, 19 May 2003 15:33:05 -0400
    
    
  
Update of /cvs-repository/Products/Ape/lib/apelib/tests
In directory cvs.zope.org:/tmp/cvs-serv1802/tests
Modified Files:
	testzope2sql.py 
Log Message:
Provided new machinery for initializing databases, especially creating
tables.
- Added two new interfaces, IDatabaseInitializer and
IDatabaseInitEvent.  The initializer.init(event) gets called when new
connections are made to the database.
- All gateways in the sql subpackage now implement IDatabaseInitializer.
- Added methods to mappers for configuring and using initializers.
- Renamed setUp() to init(), since it's easier to spell.
- Avoided calling initializers more than once.
- Renamed 'object' to 'obj' in some places.
=== Products/Ape/lib/apelib/tests/testzope2sql.py 1.4 => 1.5 ===
--- Products/Ape/lib/apelib/tests/testzope2sql.py:1.4	Sun May 18 00:16:30 2003
+++ Products/Ape/lib/apelib/tests/testzope2sql.py	Mon May 19 15:32:35 2003
@@ -47,7 +47,7 @@
         self.db = ApeDB(storage, resource)
 
     def clear(self):
-        self.storage.setUpGateways(clear_all=1)
+        self.storage.initDatabases(clear_all=1)
         for conn in self.conns.values():
             conn.db.commit()