[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services - interfaces.py:1.1.2.5 view.py:1.1.2.3

Jim Fulton jim@zope.com
Thu, 12 Dec 2002 14:25:46 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services
In directory cvs.zope.org:/tmp/cvs-serv25278/App/OFS/Services

Modified Files:
      Tag: AdapterAndView-branch
	interfaces.py view.py 
Log Message:
Modified the view and page configuration add code to use the new
generic add views from the forms package. This was largely to test the
new generic add views. We were able to eliminate a page template and
two classes.


=== Zope3/lib/python/Zope/App/OFS/Services/interfaces.py 1.1.2.4 => 1.1.2.5 ===
--- Zope3/lib/python/Zope/App/OFS/Services/interfaces.py:1.1.2.4	Thu Dec 12 10:19:54 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/interfaces.py	Thu Dec 12 14:25:45 2002
@@ -75,6 +75,7 @@
         title=u"The dotted name of a factory for creating the view",
         readonly = True,
         required = True,
+        min_length = 1,
         )
 
     viewName = TextLine(
@@ -135,6 +136,7 @@
         title=u"The dotted name of a factory for creating the view",
         readonly = True,
         required = False,
+        min_length = 1,
         )
 
     template = ComponentLocation(


=== Zope3/lib/python/Zope/App/OFS/Services/view.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/lib/python/Zope/App/OFS/Services/view.py:1.1.2.2	Thu Dec 12 10:19:54 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/view.py	Thu Dec 12 14:25:45 2002
@@ -237,7 +237,7 @@
     
     def __init__(self,
                  forInterface, viewName, presentationType,
-                 factoryName, template,
+                 factoryName=None, template=None,
                  layer='default'):
         super(PageConfiguration, self).__init__(
             forInterface, viewName, presentationType,