On Tue, Feb 10, 2009 at 2:54 AM, Paul Johnston <[email protected]> wrote: > > Hi, > Hi Paul,
> That was a temporary glitch while TW moved to the resource injector > model. Passing widgets through the dict works fine now. In fact, I > decided to make this the recommended approach in the docs, as it's > framework independent. > I though this was not the case. As Christoph points out the *recommended* way should be to use tg.tmpl_context/pylons.c as passing widgets to json controllers will be a bad thing, this is specially important now that .json and .html urls work in TG. I think we should reconsider commending this on the docs of TW or document it in both TW and TG. > I think there is merit in a "widget registry" approach, but there's a > bit of work to do this properly. (and probably other, more interesting > things to look at first) > > Paul > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
