On Thu, Oct 1, 2009 at 1:33 AM, Moshe C. <[email protected]> wrote: > > Calling render() from within a template used in a Pylon application > fails in 0.9.7, while it worked in 0.9.6 . > > In each Python file generated per template there is a line > render = context.get('render', UNDEFINED) > and render is assigned UNDEFINED. > > Comparing 0.9.6 pylons.templating._update_names() with 0.9.7 > pylons.templating.pylons_globals, shows that in the former 'render' > was set, but not in the latter. > > This seems to be a bug, but what is the best way to workaround it?
See http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779 The templating system was simplified in Pylons 0.9.7. Now the controllers should: from pylons.templating import render_mako as render -- Mike Orr <[email protected]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
