[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/file/file.py - add chunks to the jar properly

Fred L. Drake, Jr. fdrake at gmail.com
Mon Aug 16 19:24:45 EDT 2004


Log message for revision 27156:
  - add chunks to the jar properly
  - savepoint() is not part of ZODB3; call commit(1) instead
  


Changed:
  U   Zope3/trunk/src/zope/app/file/file.py


-=-
Modified: Zope3/trunk/src/zope/app/file/file.py
===================================================================
--- Zope3/trunk/src/zope/app/file/file.py	2004-08-16 22:32:47 UTC (rev 27155)
+++ Zope3/trunk/src/zope/app/file/file.py	2004-08-16 23:24:45 UTC (rev 27156)
@@ -190,14 +190,14 @@
             # Woooop Woooop Woooop! This is a trick.
             # We stuff the data directly into our jar to reduce the
             # number of updates necessary.
-            data._p_jar = jar
+            jar.add(data)
 
             # This is needed and has side benefit of getting
             # the thing registered:
             data.next = next
 
             # Now make it get saved in a sub-transaction!
-            get_transaction().savepoint()
+            get_transaction().commit(1)
 
             # Now make it a ghost to free the memory.  We
             # don't need it anymore!



More information about the Zope3-Checkins mailing list