[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Publisher/XMLRPC - metaConfigure.py:1.2.6.4
Rakesh Naidu
rnaidu@zeomega.com
Tue, 22 Oct 2002 06:13:28 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Publisher/XMLRPC
In directory cvs.zope.org:/tmp/cvs-serv20854/lib/python/Zope/App/Publisher/XMLRPC
Modified Files:
Tag: Zope3-Bangalore-TTW-Branch
metaConfigure.py
Log Message:
update of InterfaceService and changes on metaconfigure files
=== Zope3/lib/python/Zope/App/Publisher/XMLRPC/metaConfigure.py 1.2.6.3 => 1.2.6.4 ===
--- Zope3/lib/python/Zope/App/Publisher/XMLRPC/metaConfigure.py:1.2.6.3 Mon Oct 21 11:04:01 2002
+++ Zope3/lib/python/Zope/App/Publisher/XMLRPC/metaConfigure.py Tue Oct 22 06:13:28 2002
@@ -27,6 +27,7 @@
from Zope.App.ComponentArchitecture.metaConfigure \
import defaultView as _defaultView, handler
+from Interface import Interface
class view(object):
@@ -153,13 +154,23 @@
factory[-1] = proxyView
- return [
+ actions = [
Action(
- discriminator = ('view', self.for_, self.name, self.type),
+ discriminator = ('view', self.for_, self.name, self.type),
+ callable = handler,
+ args = ('Views', 'provideView', self.for_, self.name,
+ self.type, factory),
+ )
+ ]
+ if self.for_ is not None:
+ actions.append
+ (
+ Action(
+ discriminator = None,
callable = handler,
- args = ('Views', 'provideView', self.for_, self.name,
- self.type, factory),
+ args = ('Interfaces', 'provideInterface',
+ self.for_.__module__+'.'+self.for_.__name__,self.for_)
)
- ]
-
-
+ )
+ return actions
+