[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - pagefolder.py:1.5
Jim Fulton
jim@zope.com
Wed, 2 Jul 2003 18:11:41 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv380/src/zope/app/interfaces/services
Modified Files:
pagefolder.py
Log Message:
Added an applyDefaults method to apply default settings to existing
page registrations.
=== Zope3/src/zope/app/interfaces/services/pagefolder.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/interfaces/services/pagefolder.py:1.4 Sat Jun 21 17:22:10 2003
+++ Zope3/src/zope/app/interfaces/services/pagefolder.py Wed Jul 2 18:11:05 2003
@@ -19,7 +19,7 @@
$Id$
"""
from zope.app.component.interfacefield import InterfaceField
-from zope.schema import BytesLine
+from zope.schema import BytesLine, Bool
from zope.app.interfaces.container import IContainer
from zope.app.security.permission import PermissionField
from zope.app.interfaces.services.registration \
@@ -57,8 +57,19 @@
required = True,
)
+ apply = Bool(
+ title=u"Apply changes to existing pages",
+ required = True,
+ )
+
class IPageFolder(IPageFolderInfo,
IContainer,
IRegistrationManagerContainer):
"""Sub-packages that contain templates that are registered as page views
"""
+
+ def applyDefaults(self):
+ """Apply the default configuration to the already-registered pages.
+ """
+
+