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

Jim Fulton jim@zope.com
Sat, 25 Jan 2003 08:28:57 -0500


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

Modified Files:
	interfaces.py 
Log Message:
Added a constraint to the presentationType field to only allow
interfaces with names ending in "Presentation". This is a bit lame,
but was needed to folder out view interfaces. :/ There's probably a
better way to do this in the long run.


=== Zope3/src/zope/app/interfaces/services/interfaces.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/interfaces/services/interfaces.py:1.8	Tue Jan 21 16:45:06 2003
+++ Zope3/src/zope/app/interfaces/services/interfaces.py	Sat Jan 25 08:28:54 2003
@@ -79,6 +79,7 @@
         readonly = True,
         required = True,
         basetype = IPresentation,
+        constraint = lambda i: i.__name__.endswith("Presentation"),
         )
 
     viewName = TextLine(