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

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


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

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/XMLRPC/metaConfigure.py 1.2 => 1.2.6.1 ===
--- Zope3/lib/python/Zope/App/Publisher/XMLRPC/metaConfigure.py:1.2	Sat Jun 29 11:41:40 2002
+++ Zope3/lib/python/Zope/App/Publisher/XMLRPC/metaConfigure.py	Mon Oct 21 10:38:42 2002
@@ -153,12 +153,23 @@
 
             factory[-1] =  proxyView
 
-        return [
-            Action(
-                discriminator = ('view', self.for_, self.name, self.type),
-                callable = handler,
-                args = ('Views', 'provideView', self.for_, self.name,
+            actions = [
+                Action(
+                      discriminator = ('view', self.for_, self.name, self.type),
+                      callable = handler,
+                      args = ('Views', 'provideView', self.for_, self.name,
                         self.type, factory),
-                )
-            ]
+                      )
+                      ]
+            if for_ is not None:
+                actions.append
+                (
+                 Action(
+                      discriminator = None,
+                      callable = handler,
+                      args = ('Interfaces', 'provideInterface', for_.__module__+'.'+for_.__name__,for_)
+                       )
+                    )
 
+        return actions        
+