[Zope3-checkins] CVS: Zope3/src/zope/app/utility - fixup.py:1.3
Jim Fulton
jim at zope.com
Sat Apr 17 07:00:56 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/utility
In directory cvs.zope.org:/tmp/cvs-serv27630
Modified Files:
fixup.py
Log Message:
Fixed a bug in the fixup script. I'd forgotten to close the
transaction. Dang.
=== Zope3/src/zope/app/utility/fixup.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/utility/fixup.py:1.2 Thu Apr 15 18:11:14 2004
+++ Zope3/src/zope/app/utility/fixup.py Sat Apr 17 07:00:54 2004
@@ -24,6 +24,7 @@
from zope.interface.adapter import Null
from zope.app.registration.registration import NotifyingRegistrationStack
from zope.app.container.interfaces import IContainer
+from transaction import get_transaction
import zope.app.event.function
@@ -51,7 +52,9 @@
del sys.modules['zope.interface.implementor']
del LocalUtilityService.base
annotations[key] = True
+ get_transaction().commit()
finally:
+ get_transaction().abort()
conn.close()
notify = zope.app.event.function.Subscriber(notify)
More information about the Zope3-Checkins
mailing list