[Checkins] SVN: Sandbox/shane/republish/zope/pipeline/apps/switch.py use the new pipeline getter

Shane Hathaway shane at hathawaymix.org
Thu Feb 12 03:33:29 EST 2009


Log message for revision 96462:
  use the new pipeline getter

Changed:
  U   Sandbox/shane/republish/zope/pipeline/apps/switch.py

-=-
Modified: Sandbox/shane/republish/zope/pipeline/apps/switch.py
===================================================================
--- Sandbox/shane/republish/zope/pipeline/apps/switch.py	2009-02-12 08:29:02 UTC (rev 96461)
+++ Sandbox/shane/republish/zope/pipeline/apps/switch.py	2009-02-12 08:33:29 UTC (rev 96462)
@@ -16,6 +16,8 @@
 from zope.interface import implements
 from zope.publisher.interfaces import IWSGIApplication
 
+from zope.pipeline.entry import get_pipeline
+
 class SwitchPipeline(object):
     """WSGI application that switches to a pipeline based on the request type.
 
@@ -25,7 +27,7 @@
 
     def __call__(self, environ, start_response):
         request = environ['zope.request']
-        app = IWSGIApplication(request, name='pipeline')
+        app = get_pipeline(request)
         return app(environ, start_response)
 
     def __repr__(self):



More information about the Checkins mailing list