At 08:08 PM 7/23/2005 -0400, Chris McDonough wrote:
>Would you maybe rather make it more explicit that some apps are also
>gateways, e.g.:
>
>[application:bleeb]
>config = bleeb.conf
>factory = bleeb.factory
>
>[filter:blaz]
>config = blaz.conf
>factory = blaz.factory

That looks backwards to me.  Why not just list the sections in pipeline 
order?  i.e., outermost middleware first, and the final application last?

For that matter, if you did that, you could specify the above as:

     [blaz.factory]
     config=blaz.conf

     [bleeb.factory]
     config=bleeb.conf

Which looks a lot nicer to me.  If you want global WSGI or server options 
for the stack, one could always use multi-word section names e.g.:

     [WSGI options]
     multi_thread = 0

     [mod_python options]
     blah = "feh"

and not treat these sections as part of the pipeline.  For Ian's idea about 
requiring particular projects to be available (via pkg_resources), I'd 
suggest making that sort of thing part of one of the options sections.

_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to