[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - interfaces.py:1.14

Albertas Agejevas alga@codeworks.lt
Fri, 21 Feb 2003 09:50:35 -0500


Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv25262/app/interfaces/services

Modified Files:
	interfaces.py 
Log Message:
Added calling the validation of PageConfiguration to its edit form.


=== Zope3/src/zope/app/interfaces/services/interfaces.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/interfaces/services/interfaces.py:1.13	Wed Feb 19 10:24:49 2003
+++ Zope3/src/zope/app/interfaces/services/interfaces.py	Fri Feb 21 09:50:04 2003
@@ -152,24 +152,27 @@
     class_ = BytesLine(
         title=u"Page class",
         required = False,
-        min_length = 1,
         )
 
     template = ComponentPath(
         title = u"Page template",
         required = False,
-        readonly = True,
         type = IZPTTemplate,
         )
 
     attribute = TextLine(
         title = u"Class attribute",
         required = False,
-        readonly = True,
         )
 
 class IPageConfiguration(IConfiguration, IPageConfigurationInfo):
 
     def getView(object, request):
         """Return a page for the object.
+        """
+
+    def validate(self):
+        """Verifies that the configuration is valid.
+
+        Raises a ConfigurationError if the validation is failed.
         """