In pylons 0.9.6.1, try modifying app/lib/base.py like this:

-from pylons.templating import render
+from pylons.templating import render as pylons_render

+object1 = {'foo': 'bar'}
+def render(*args, **kwargs):
+    kwargs['object1'] = object1
+    return pylons_render(*args, **kwargs)

Hope that helps...

-brian

On Jun 24, 8:33 pm, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
> wait, i'm looking at this again...
>
> i'm not seeing any way to push custom vars into the render function
> outside of monkeypatching or doing something to render
>
> i could put my new objects in pylons.c / pylons.g there trivially, but
> i dont think i can bust out of them cleanly.

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

Reply via email to