On Aug 4, 2006, at 6:37 AM, Michele Cella wrote: > > Kevin Dangoor wrote: >> On Jul 31, 2006, at 2:07 AM, Max Ischenko wrote: >> >>> >>> -1 from me. >>> >>> I think calling _controllers_ methods 'view' is rather un- >>> intuitive. I >>> like 'expose' much better cause it really about 'exposing' certain >>> methods to the outside world. >> >> Here's the thing, though... it's not actually calling the method >> itself a view. It's saying "the view for this method is this thing". >> >> The only wrinkle is that case where a controller is basically >> providing its own view (returning a string) or just redirecting. >> > > http://www.shorttext.com/us9w5 > > That's the idea that popped in mind after seeing the new RoR > restful/respond_to approach (1 month ago), at the moment we can't do > the restful things so easily but I think a @respond decorator is > pretty > self explanatory.
Actually, @view/expose already handles multiple types of responses (not based on HTTP method but based on accept headers and tg_format). > I think we should also move json.py and templates inside a common > views > subpackage. That is likely a good idea, but I think that's a good idea for later. Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

