[Zope3-checkins]
SVN: Zope3/branches/isarsprint-dav-work/src/zope/app/dav/proppatch.py
The correct way for dealing with transactions is to import
transaction and to
Martijn Pieters
mj at zopatista.com
Wed Oct 13 06:47:12 EDT 2004
Log message for revision 28058:
The correct way for dealing with transactions is to import transaction and to
call the module function 'abort' on that.
Changed:
U Zope3/branches/isarsprint-dav-work/src/zope/app/dav/proppatch.py
-=-
Modified: Zope3/branches/isarsprint-dav-work/src/zope/app/dav/proppatch.py
===================================================================
--- Zope3/branches/isarsprint-dav-work/src/zope/app/dav/proppatch.py 2004-10-13 10:23:16 UTC (rev 28057)
+++ Zope3/branches/isarsprint-dav-work/src/zope/app/dav/proppatch.py 2004-10-13 10:47:10 UTC (rev 28058)
@@ -17,6 +17,7 @@
from xml.dom import minidom
+import transaction
from zope.app import zapi
from zope.schema import getFieldNamesInOrder
from zope.app.container.interfaces import IReadContainer
@@ -110,7 +111,7 @@
if _propresults.keys() != [200]:
# At least some props failed, abort transaction
- get_transaction().abort()
+ transaction.abort()
# Move 200 succeeded props to the 424 status
if _propresults.has_key(200):
failed = _propresults.setdefault(424, {})
More information about the Zope3-Checkins
mailing list