[Zope3-checkins] CVS: Zope3/src/zope/app/services -
pagefolder.py:1.13.18.4
Fred L. Drake, Jr.
fred at zope.com
Fri Sep 12 18:10:00 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv11760
Modified Files:
Tag: parentgeddon-branch
pagefolder.py
Log Message:
- another instance of super(...).__setitem__
- remove useless return from __setitem__
=== Zope3/src/zope/app/services/pagefolder.py 1.13.18.3 => 1.13.18.4 ===
--- Zope3/src/zope/app/services/pagefolder.py:1.13.18.3 Fri Sep 12 15:15:33 2003
+++ Zope3/src/zope/app/services/pagefolder.py Fri Sep 12 18:10:00 2003
@@ -60,7 +60,7 @@
def __setitem__(self, name, object):
if (IRegistrationManager.isImplementedBy(object) or
IZPTTemplate.isImplementedBy(object)):
- super(PageFolder, self)[name] = object
+ super(PageFolder, self).__setitem__(name, object)
else:
raise TypeError("Can only add templates", object)
@@ -83,8 +83,6 @@
registration = registrations[id]
registration.status = ActiveStatus
- return name
-
def applyDefaults(self):
"""Apply the default configuration to the already-registered pages.
"""
@@ -109,10 +107,6 @@
# Now restore the registration status
registration.status = status
-
-
-
-
_attrNames = (
More information about the Zope3-Checkins
mailing list