[Zope-Checkins] SVN: Products.Five/branches/1.0/browser.py one more zodb 3.4-style transaction abort

Philipp von Weitershausen philikon at philikon.de
Fri Mar 31 11:58:40 EST 2006


Log message for revision 66279:
  one more zodb 3.4-style transaction abort
  

Changed:
  UU  Products.Five/branches/1.0/browser.py

-=-
Modified: Products.Five/branches/1.0/browser.py
===================================================================
--- Products.Five/branches/1.0/browser.py	2006-03-31 16:52:05 UTC (rev 66278)
+++ Products.Five/branches/1.0/browser.py	2006-03-31 16:58:39 UTC (rev 66279)
@@ -20,6 +20,7 @@
 from datetime import datetime
 
 # Zope 2
+import transaction
 import Acquisition
 from  Acquisition import aq_inner, aq_parent, aq_base
 from AccessControl import ClassSecurityInfo
@@ -217,7 +218,7 @@
             except WidgetsError, errors:
                 self.errors = errors
                 status = "An error occured."
-                get_transaction().abort()
+                transaction.abort()
             else:
                 setUpEditWidgets(self, self.schema, source=self.adapted,
                                  ignoreStickyValues=True,


Property changes on: Products.Five/branches/1.0/browser.py
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the Zope-Checkins mailing list