[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser - metaconfigure.py:1.20

Jim Fulton jim at zope.com
Mon Mar 15 15:41:52 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/publisher/browser
In directory cvs.zope.org:/tmp/cvs-serv3160/src/zope/app/publisher/browser

Modified Files:
	metaconfigure.py 
Log Message:
Removed the unused keyword arguments (and the ability to define a
view) from the defaultView handler.


=== Zope3/src/zope/app/publisher/browser/metaconfigure.py 1.19 => 1.20 ===
--- Zope3/src/zope/app/publisher/browser/metaconfigure.py:1.19	Tue Mar  9 07:39:06 2004
+++ Zope3/src/zope/app/publisher/browser/metaconfigure.py	Mon Mar 15 15:41:51 2004
@@ -32,10 +32,7 @@
 from zope.app.publisher.browser.viewmeta import view
 from zope.app.component.interface import provideInterface
 
-def defaultView(_context, name, for_=None, **__kw):
-
-    if __kw:
-        view(_context, name=name, for_=for_, **__kw)()
+def defaultView(_context, name, for_=None):
 
     type = IBrowserRequest
 
@@ -50,8 +47,7 @@
         _context.action(
             discriminator = None,
             callable = provideInterface,
-            args = (for_.__module__+'.'+for_.getName(),
-                    for_)
+            args = ('', for_)
             )
 
 




More information about the Zope3-Checkins mailing list