I don't know enough (yet) to help, but I think this sounds like a great idea.
I prefer Routes to CP-style dispatch, but like everything else TG provides. Especially returning a dict (except in a few special cases). So, if these can be turned on and off separately, though would be a huge win. Particularly if they can be mixed (so a Route could call in to a controller, which would use CP-ctyle dispatch for the rest of the URL). The more we can pick-and-choose which features of TG2 to use, the better. All IMHO. On Oct 11, 11:06 am, "Mark Ramm" <[EMAIL PROTECTED]> wrote: > It shouldn't change the user API for TG2 users at all. > > The main change will be to the implementation, we'll have a base class > for decorator style controllers, (perhaps DecoratorController > controller) and inherit from that to create the standard > TurboGearsController which does object dispatch too. > > But for the standard TG user they will still just import > TurboGearsController and use that as the base class for the root > controller in their tree. > > For people using pylons, they will be able to import > DecoratorController, and use expose(), return a dictionary and > otherwise write controllers like TG, but use Routes (or whatever other > mechanism) to do dispatch to those controllers. > > --Mark > > On 10/11/07, Christopher Arndt <[EMAIL PROTECTED]> wrote: > > > > > > > Mark Ramm schrieb: > > > I'd like to break up the link between "turbogears decorator style" > > > controllers from Object Dispatch style controllers. The default TG2 > > > controller will do both, but It sounds like Pylons folks would like to > > > use decorator style (returning a dictionary, and multiple expose based > > > content negotiation) with Routes. > > > > Anybody got any objections? Or even better, anybody wanna help? > > > Could you elaborate on that a little more? Maybe with some examples of > > how the code would look like with the proposed chenages? > > > Chris > > -- > Mark Ramm-Christensen > email: mark at compoundthinking dot com > blog:www.compoundthinking.com/blog --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
