[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Publisher/Browser - metaConfigure.py:1.5.6.1

Rakesh Naidu rnaidu@zeomega.com
Mon, 21 Oct 2002 10:39:12 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/Publisher/Browser
In directory cvs.zope.org:/tmp/cvs-serv2751/Zope3-Bangalore-TTW-Branch/lib/python/Zope/App/Publisher/Browser

Modified Files:
      Tag: Zope3-Bangalore-TTW-Branch
	metaConfigure.py 
Log Message:
added Interface actions for the parameters type,for_,provides


=== Zope3/lib/python/Zope/App/Publisher/Browser/metaConfigure.py 1.5 => 1.5.6.1 ===
--- Zope3/lib/python/Zope/App/Publisher/Browser/metaConfigure.py:1.5	Tue Jun 25 10:30:08 2002
+++ Zope3/lib/python/Zope/App/Publisher/Browser/metaConfigure.py	Mon Oct 21 10:38:42 2002
@@ -44,10 +44,22 @@
 
     type = IBrowserPresentation
 
-    actions += [Action(
+    actions += [
+        Action(
         discriminator = ('defaultViewName', for_, type, name),
         callable = handler,
         args = ('Views','setDefaultViewName', for_, type, name),
-        )]
+        )
+        ]
+    if for_ is not None:
+        actions.append
+        (
+        Action(
+        discriminator = None,
+        callable = handler,
+        args = ('Interfaces', 'provideInterface', for_.__module__+'.'+for_.__name__,for_)
+              )
+        )
+        
 
     return actions