On Wednesday 10 January 2007 23:25, anderbubble wrote: > 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?
You can always introduce two methods, one that does the work and the other that gets exposed and calls the first one. But it might also be possible to toy around with tg_format/as_format. By that you can at least switch between json and html, not sure if there is a vanilla-format though. Diez --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

