[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/browser - viewmeta.py:1.24

Godefroid Chapelle gotcha@swing.be
Wed, 14 May 2003 09:33:03 -0400


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

Modified Files:
	viewmeta.py 
Log Message:
use Views service name instead of hardcoded string



=== Zope3/src/zope/app/publisher/browser/viewmeta.py 1.23 => 1.24 ===
--- Zope3/src/zope/app/publisher/browser/viewmeta.py:1.23	Fri May  2 14:27:07 2003
+++ Zope3/src/zope/app/publisher/browser/viewmeta.py	Wed May 14 09:33:02 2003
@@ -32,7 +32,7 @@
 from zope.configuration.action import Action
 from zope.configuration.exceptions import ConfigurationError
 
-from zope.app.services.servicenames import Interfaces
+from zope.app.services.servicenames import Interfaces, Views
 
 from zope.publisher.interfaces.browser import IBrowserPresentation
 from zope.publisher.interfaces.browser import IBrowserPublisher
@@ -186,7 +186,7 @@
         Action(
           discriminator = ('view', for_, name, IBrowserPresentation, layer),
           callable = handler,
-          args = ('Views', 'provideView',
+          args = (Views, 'provideView',
                   for_, name, IBrowserPresentation, [new_class], layer),
           )
         )
@@ -382,7 +382,7 @@
               discriminator = ('view',
                                for_, name, IBrowserPresentation, layer),
               callable = handler,
-              args = ('Views', 'provideView',
+              args = (Views, 'provideView',
                       for_, name, IBrowserPresentation, [newclass], layer),
               )
             )
@@ -414,7 +414,7 @@
         Action(
         discriminator = ('defaultViewName', for_, IBrowserPresentation, name),
         callable = handler,
-        args = ('Views','setDefaultViewName', for_, IBrowserPresentation,
+        args = (Views,'setDefaultViewName', for_, IBrowserPresentation,
                 name),
         )]