[Checkins] SVN: Sandbox/shane/republish/zope/pipeline/configure.zcml Should I add wsgi:app and wsgi:middleware directives?
Shane Hathaway
shane at hathawaymix.org
Wed Feb 11 04:39:55 EST 2009
Log message for revision 96441:
Should I add wsgi:app and wsgi:middleware directives?
They look pretty appealing so far. They are meant to work
with any WSGI middleware / app out there.
Changed:
U Sandbox/shane/republish/zope/pipeline/configure.zcml
-=-
Modified: Sandbox/shane/republish/zope/pipeline/configure.zcml
===================================================================
--- Sandbox/shane/republish/zope/pipeline/configure.zcml 2009-02-11 09:20:25 UTC (rev 96440)
+++ Sandbox/shane/republish/zope/pipeline/configure.zcml 2009-02-11 09:39:54 UTC (rev 96441)
@@ -10,6 +10,7 @@
" />
<wsgi:stage-list require="zope.publisher.interfaces.IRequest" names="
+ logger
root_opener
transaction_controller
notifier
@@ -29,10 +30,27 @@
<wsgi:pipeline require="zope.publisher.interfaces.http.IHTTPRequest" />
<wsgi:pipeline require="zope.publisher.interfaces.browser.IBrowserRequest" />
-<adapter
- factory="..."
- name="logger" />
+<!-- a wsgi:middleware directive is just like an adapter directive,
+ except that the adapter is always registered as requiring
+ two parameters, 'app' and 'request'; the factory may be wrapped
+ to make that happen. If neither the directive nor the factory
+ says what kind of request is required, assume IRequest. -->
+<wsgi:middleware
+ factory=".retry.Retry"
+ name="retry" />
+
+<!-- a wsgi:app directive is just like an adapter directive,
+ except that the adapter is always registered as requiring
+ one parameter, 'request'; the factory may be wrapped
+ to make that happen. If neither the directive nor the factory
+ says what kind of request is required, assume IRequest. -->
+
+<wsgi:app
+ factory=".caller.Caller"
+ name="caller" />
+
+
<adapter
factory=".retry.Retry"
name="retry" />
@@ -42,6 +60,14 @@
name="request_factory" />
<adapter
+ factory="..."
+ name="select_pipeline" />
+
+<adapter
+ factory="..."
+ name="logger" />
+
+<adapter
factory=".rootopen.RootOpener"
name="root_opener" />
@@ -69,9 +95,6 @@
factory=".txnctl.TransactionAnnotator"
name="transaction_annotator" />
-<adapter
- factory=".caller.Caller"
- name="caller" />
</configuration>
More information about the Checkins
mailing list