On Jan 19, 2007, at 3:47 PM, Damjan wrote:


I think it's very usefull to just plainly call the controller methods
and get the dict as result.. for example you might want to call several different controller methods, merge the dictionaries and then render it
with a complex template.

What I'm proposing is:
TG (checking for validators and identity) -request-> controller_method
-dict-> TG (wrapping in template set by @expose) -response-> ... ->
user agent.

Decorators would just add attributes to the controller_method ... this
was also Kevin's idea, and I thought there was a concensus about this.

I see... I was misunderstanding you then... Yes, this is what is planned for TG 2.0. Decorators will just register behavior and return the original function. Some mechanism will take care on turning a controller's output into something understandable by a UA.

I was head was back in the original thread's subject and thinking on TG 1.0... :)

Alberto

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to