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

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


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


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/file/file.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/file/file.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/file/file.py	2004-08-16 23:24:45 UTC (rev 27156)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/file/file.py	2004-08-16 23:29:07 UTC (rev 27157)
@@ -188,14 +188,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