On Mon, Jun 22, 2009 at 5:55 AM, Noah Gift<[email protected]> wrote:
>
>
> 2009/6/23 André Felipe Dias <[email protected]>
>>
>> Hi, there
>>
>> I would like to change the default dispatching middleware from routes to
>> urlrelay (http://pypi.python.org/pypi/urlrelay/). Does anybody could
>> give some directions about how this can be accomplished?
>
> This would be an interesting option for Pylons.  I wonder how hard it would
> be to make paster create have this as a template...

Anyone can create a paster template by defining the appropriate entry
point.  See Pylons/pylons/templates and Pylons/setup.py for examples.

It looks like using urlrelay in a Pylons application would mean
replacing both the routing and the controllers with decorated
functions, so it would be quite a different application structure.
You'd also have to override the dispatching in PylonsApp where it
finds a controller and calls the action.  I'm not sure how much of
Pylons you'd have left at that point.  You could have the mini WSGI
applications use WebOb directly, and wrap the whole thing in Beaker
middleware for sessions.

-- 
Mike Orr <[email protected]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to