[Zope3-checkins]
SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/__init__.py
- added missing import (for I18N)
Fred L. Drake, Jr.
fdrake at gmail.com
Wed Sep 15 14:04:27 EDT 2004
Log message for revision 27537:
- added missing import (for I18N)
- fix message generation for deleted registrations
(merged from trunk revision 27531)
Changed:
U Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/__init__.py
-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/__init__.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/__init__.py 2004-09-15 15:10:20 UTC (rev 27536)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/__init__.py 2004-09-15 18:04:26 UTC (rev 27537)
@@ -24,7 +24,9 @@
from zope.security.proxy import removeSecurityProxy
from zope.app.introspector import interfaceToName
+from zope.app.i18n import ZopeMessageIDFactory as _
+
class AddRegistration(AddComponentRegistration):
"""View for adding a utility registration.
@@ -127,9 +129,7 @@
for info in registry.info():
conf = info['registration']
obj = conf.getComponent()
- if first:
- done.append(conf.usageSummary())
- first = False
+ done.append(conf.usageSummary())
path = zapi.getPath(obj)
services[path] = obj
conf.status = UnregisteredStatus
@@ -144,7 +144,7 @@
del parent[name]
s = _("Deleted: ${utility_names}")
- s.mapping = {'utility_names': ", ".join(todo)}
+ s.mapping = {'utility_names': ", ".join(done)}
return s
def getConfigs(self):
More information about the Zope3-Checkins
mailing list