[Zope3-checkins] CVS: Zope3/src/zope/app/services - service.py:1.22
Guido van Rossum
guido@python.org
Mon, 2 Jun 2003 10:34:40 -0400
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv16529
Modified Files:
service.py
Log Message:
Add missing __delitem__ (which delegates to self.Packages like
__getitem__, get(), keys(), setObject() etc. Now you can delete site
management folders with the handy Delete button on the Contents tab of
the site manager.
=== Zope3/src/zope/app/services/service.py 1.21 => 1.22 ===
--- Zope3/src/zope/app/services/service.py:1.21 Sun Jun 1 11:59:36 2003
+++ Zope3/src/zope/app/services/service.py Mon Jun 2 10:34:40 2003
@@ -231,6 +231,9 @@
def setObject(self, name, value):
return self.Packages.setObject(name, value)
+ def __delitem__(self, key):
+ return self.Packages.__delitem__(key)
+
def findModule(wrapped_self, name):
# override to pass call up to next service manager
mod = super(ServiceManager,