I have made a few more almost successful experiments. My
RootController now sub-classes DecoratedController as Mark suggested.
Before I do the subclassing I remove the __before__ and __after__
attributes from DecoratedController:

delattr(DecoratedController, '__before__')
delattr(DecoratedController, '__after__')

That almost works. The routing works and if my custom route is:

m.connect('prefix/{action}', controller='root')

Then it gets to the proper method on the RootController. The problem
is that now the pylons.request object has no response_type attribute.
It's not surprizing because the __before__ and __after__ methods are
probably there for a reason.

So, I renew my plea for a working example of custom routes in TG2.

Thanks, Carl





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to