[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/component/browser/registration.py
Fixed a bug in the registration UI that was leaving utilities
registered even when their registrations were deleted.
Garrett Smith
garrett at mojave-corp.com
Tue Apr 19 08:56:17 EDT 2005
Log message for revision 30040:
Fixed a bug in the registration UI that was leaving utilities registered even when their registrations were deleted.
Changed:
U Zope3/trunk/src/zope/app/component/browser/registration.py
-=-
Modified: Zope3/trunk/src/zope/app/component/browser/registration.py
===================================================================
--- Zope3/trunk/src/zope/app/component/browser/registration.py 2005-04-19 12:50:04 UTC (rev 30039)
+++ Zope3/trunk/src/zope/app/component/browser/registration.py 2005-04-19 12:56:17 UTC (rev 30040)
@@ -165,7 +165,7 @@
"registration code now uses the component directly instead "
"of using the component's path.",
DeprecationWarning, stacklevel=2,
- )
+ )
super(ComponentPathWidget, self).__init__(*args, **kw)
def __call__(self):
@@ -323,9 +323,10 @@
return ''
def remove_objects(self, key_list):
- """Remove the directives from the container."""
+ """Unregister and remove the directives from the container."""
container = self.context
for name in key_list:
+ container[name].status = InactiveStatus
del container[name]
def registrationInfo(self):
More information about the Zope3-Checkins
mailing list