[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/File - File.py:1.7
Jeremy Hylton
jeremy@zope.com
Wed, 24 Jul 2002 19:15:46 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/File
In directory cvs.zope.org:/tmp/cvs-serv4409/Zope/App/OFS/Content/File
Modified Files:
File.py
Log Message:
Use savepoint() instead of commit(1).
=== Zope3/lib/python/Zope/App/OFS/Content/File/File.py 1.6 => 1.7 ===
# Make sure we have an _p_jar, even if we are a new object, by
# doing a sub-transaction commit.
- get_transaction().commit(1)
+ get_transaction().savepoint()
jar = self._p_jar
@@ -150,7 +150,7 @@
data.next = next
# Now make it get saved in a sub-transaction!
- get_transaction().commit(1)
+ get_transaction().savepoint()
# Now make it a ghost to free the memory. We
# don't need it anymore!