[Zope3-checkins] CVS: Zope3/src/zope/app/renderer - configure.zcml:1.3.16.1 metaconfigure.py:1.3.16.1

Jim Fulton cvs-admin at zope.org
Sun Nov 9 11:08:56 EST 2003


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

Modified Files:
      Tag: adaptergeddon-branch
	configure.zcml metaconfigure.py 
Log Message:
Created a global presentation service that replaces the 
global view, resource, and skin services.

Now look up presentation components by adapting from a request type,
rather than adapting to a presentation type.





=== Zope3/src/zope/app/renderer/configure.zcml 1.3 => 1.3.16.1 ===
--- Zope3/src/zope/app/renderer/configure.zcml:1.3	Sat Aug  2 07:20:07 2003
+++ Zope3/src/zope/app/renderer/configure.zcml	Sun Nov  9 11:08:25 2003
@@ -39,7 +39,7 @@
 
   <renderer:renderer 
       sourceType="zope.app.interfaces.renderer.IPlainTextSource"
-      for="zope.publisher.interfaces.browser.IBrowserPresentation" 
+      for="zope.publisher.interfaces.browser.IBrowserRequest" 
       factory=".plaintext.PlainTextToHTMLRenderer" />
 
 
@@ -52,7 +52,7 @@
 
   <!--renderer:renderer 
       sourceType="zope.app.interfaces.renderer.IStructuredTextSource"
-      for="zope.publisher.interfaces.browser.IBrowserPresentation" 
+      for="zope.publisher.interfaces.browser.IBrowserRequest" 
       factory=".stx.StructuredTextToHTMLRenderer" /-->
 
 
@@ -65,7 +65,7 @@
 
   <renderer:renderer 
       sourceType="zope.app.interfaces.renderer.IReStructuredTextSource"
-      for="zope.publisher.interfaces.browser.IBrowserPresentation" 
+      for="zope.publisher.interfaces.browser.IBrowserRequest" 
       factory=".rest.ReStructuredTextToHTMLRenderer" />
 
 


=== Zope3/src/zope/app/renderer/metaconfigure.py 1.3 => 1.3.16.1 ===
--- Zope3/src/zope/app/renderer/metaconfigure.py:1.3	Sat Aug  2 02:54:00 2003
+++ Zope3/src/zope/app/renderer/metaconfigure.py	Sun Nov  9 11:08:25 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