[Zope3-checkins] CVS: Zope3/src/zope/app/renderer - metaconfigure.py:1.4

Jim Fulton cvs-admin at zope.org
Fri Nov 21 12:10:52 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/renderer
In directory cvs.zope.org:/tmp/cvs-serv30913/src/zope/app/renderer

Modified Files:
	metaconfigure.py 
Log Message:
Unnamed views must have empty string names. They are registered with
the presentation service.


=== Zope3/src/zope/app/renderer/metaconfigure.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/renderer/metaconfigure.py:1.3	Sat Aug  2 02:54:00 2003
+++ Zope3/src/zope/app/renderer/metaconfigure.py	Fri Nov 21 12:10:52 2003
@@ -20,6 +20,7 @@
 from zope.configuration.fields import GlobalObject
 from zope.interface import Interface
 from zope.schema import TextLine
+from zope.component.servicenames import Presentation
 
 class ISourceTypeDirective(Interface):
     """The renderers directive specifies how a particular source text can
@@ -65,10 +66,10 @@
 
 def renderer(_context, sourceType, for_, factory):
     _context.action(
-        discriminator = ('view', sourceType, None, for_, 'default'),
+        discriminator = ('view', sourceType, u'', for_, 'default'),
         callable = handler,
-        args = ('Views', 'provideView',
-                sourceType, None, for_, factory, 'default')
+        args = (Presentation, 'provideView',
+                sourceType, u'', for_, factory, 'default')
         )
 
 def sourcetype(_context, interface, class_, title=u''):




More information about the Zope3-Checkins mailing list