[Zope-CVS] CVS: Products/Ape/lib/apelib/tests - testzope2fs.py:1.6.2.1

Shane Hathaway shane at zope.com
Wed Feb 25 11:04:03 EST 2004


Update of /cvs-repository/Products/Ape/lib/apelib/tests
In directory cvs.zope.org:/tmp/cvs-serv9748/lib/apelib/tests

Modified Files:
      Tag: ape-fs-oid-branch
	testzope2fs.py 
Log Message:
Created ape-fs-oid-branch, which changes Ape to use OIDs on the filesystem.

This solution will enable us to remove some of Ape's patches and
use the filesystem even more like a relational database.  It has been
difficult to find a clean strategy for doing this, but we're finally almost
there.

More tests pass than fail. ;-)


=== Products/Ape/lib/apelib/tests/testzope2fs.py 1.6 => 1.6.2.1 ===
--- Products/Ape/lib/apelib/tests/testzope2fs.py:1.6	Thu Feb 19 01:44:05 2004
+++ Products/Ape/lib/apelib/tests/testzope2fs.py	Wed Feb 25 11:03:29 2004
@@ -70,6 +70,14 @@
         self.storage = storage
         db = ApeDB(storage, resource)
         self.db = db
+        c = self.db.open()
+        try:
+            if not c.root().has_key('Application'):
+                from OFS.Application import Application
+                c.root()['Application'] = Application()
+                get_transaction().commit()
+        finally:
+            c.close()
         get_transaction().begin()
         self.conn.afs.clearCache()
 




More information about the Zope-CVS mailing list