[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Publisher/Browser - metaConfigure.py:1.5.6.4
Rakesh Naidu
rnaidu@zeomega.com
Tue, 22 Oct 2002 06:13:58 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Publisher/Browser
In directory cvs.zope.org:/tmp/cvs-serv20854/lib/python/Zope/App/Publisher/Browser
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/Browser/metaConfigure.py 1.5.6.3 => 1.5.6.4 ===
--- Zope3/lib/python/Zope/App/Publisher/Browser/metaConfigure.py:1.5.6.3 Mon Oct 21 11:04:01 2002
+++ Zope3/lib/python/Zope/App/Publisher/Browser/metaConfigure.py Tue Oct 22 06:13:27 2002
@@ -26,6 +26,7 @@
from ResourceMeta import resource
from I18nResourceMeta import I18nResource
from ViewMeta import view
+from Interface import Interface
def skin(_context, **__kw):
return _skin(_context,
@@ -44,11 +45,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
-