[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - interfaces.py:1.3 service.py:1.4

Steve Alexander steve@cat-box.net
Mon, 6 Jan 2003 13:39:40 -0500


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

Modified Files:
	interfaces.py service.py 
Log Message:
Gave the interface and interfaces fields a basetype that can be None.
Made widgets display the interface name "Anything" for the catch-all
interface None.
Updated adapter and view configuration schemas to use None as the 
basetype for for_interface


=== Zope3/src/zope/app/interfaces/services/interfaces.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/services/interfaces.py:1.2	Wed Dec 25 09:13:02 2002
+++ Zope3/src/zope/app/interfaces/services/interfaces.py	Mon Jan  6 13:39:37 2003
@@ -18,6 +18,7 @@
 
 from zope.app.interfaces.services.configuration import IConfiguration
 from zope.app.component.interfacefield import InterfaceField
+from zope.app.component.interfacefield import InterfacesField
 from zope.schema import BytesLine, TextLine, Text
 from zope.interface import Interface
 from zope.app.services.field import ComponentLocation
@@ -29,8 +30,8 @@
         title = u"For interface",
         description = u"The interface of the objects being adapted",
         readonly = True,
-        required = False,  # XXX the UI should be explicit about allowing
-        )                  #     no selection.
+        basetype = None
+        )
 
     providedInterface = InterfaceField(
         title = u"Provided interface",
@@ -61,6 +62,7 @@
         description = u"The interface of the objects being viewed",
         readonly = True,
         required = True,
+        basetype = None
         )
 
     presentationType = InterfaceField(
@@ -68,7 +70,7 @@
         description = u"The presentation type of a view",
         readonly = True,
         required = True,
-        type = IPresentation,
+        basetype = IPresentation,
         )
 
     factoryName = BytesLine(


=== Zope3/src/zope/app/interfaces/services/service.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/interfaces/services/service.py:1.3	Mon Dec 30 09:03:14 2002
+++ Zope3/src/zope/app/interfaces/services/service.py	Mon Jan  6 13:39:37 2003
@@ -141,7 +141,7 @@
         title = u"Presentation type",
         description = u"The presentation type of a view",
         required = True,
-        type = IPresentation,
+        basetype = IPresentation,
         default = IBrowserPresentation,
         )