[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/utility -
__init__.py:1.13
Anthony Baxter
anthony at interlink.com.au
Sun Feb 8 20:17:24 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/browser/services/utility
In directory cvs.zope.org:/tmp/cvs-serv6979/src/zope/app/browser/services/utility
Modified Files:
__init__.py
Log Message:
utility registrations default to status: active
=== Zope3/src/zope/app/browser/services/utility/__init__.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/browser/services/utility/__init__.py:1.12 Fri Jan 16 08:09:06 2004
+++ Zope3/src/zope/app/browser/services/utility/__init__.py Sun Feb 8 20:17:24 2004
@@ -53,6 +53,11 @@
"""
interface_widget = CustomWidgetFactory(UtilityInterfaceWidget)
+ def add(self, registration):
+ reg = super(AddRegistration, self).add(registration)
+ reg.status = ActiveStatus
+ return reg
+
class Utilities:
More information about the Zope3-Checkins
mailing list