On Jan 11, 2007, at 4:24 PM, anderbubble wrote:
> > I posted this in the TurboGears group, but thought it might be usefull > here: > >> Once you have @expose()'d a method in controllers.py, any call to >> that >> method returns a string, rather than the actual python dict(). Is >> there >> a way to bypass this to make controller methods extensible/ >> callable by >> other controller methods? > > I don't believe this feature exists. Could we implement it? Should we > have a tg_format="python" or some such, or should the code be able to > detect whether it is being called by cherrypy? It's a good idea, however, I would not bother too much with patching the trunk with this ATM because (apart that you'll probably lose much hair ;) decorators are going to be rewritten in a much simpler way (just registering behaviour and returning the orginal, undecorated function) so any changes will be probably lost. If you want to make sure this feature request is not lost please create a ticket at the trac (targeting 2.0) with a short summary and a link to this thread. Thanks, 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 -~----------~----~----~----~------~----~------~--~---
