On Fri, Feb 12, 2010 at 11:43 PM, Mike Orr <[email protected]> wrote:
> On Fri, Feb 12, 2010 at 6:33 PM, Jonathan Vanasco <[email protected]> 
> wrote:
>>
>>
>> On Feb 12, 3:33 pm, Wyatt Baldwin <[email protected]> wrote:
>>> The only other thing that threw me off (just a little) was
>>> `app_globals`. It was clear that `pylons.c` and `pylons.g` are gone,
>>> but it wasn't clear that `g` is no longer available in *templates*,
>>> partly because `c` still is and partly because the 1.0 docs (http://
>>> pylonshq.com/docs/en/1.0/) say the `g` alias is available.
>>
>> Thanks for the update!
>>
>> This sounds annoying to me.  I use g quite a bit, to preload config
>> stuff /db constants at startup, and display them throughout
>> templates.  not having this in templates will be an issue. sigh.
>
> <%!   from pylons import app_globals as g   %>
>
> <%   g = app_globals   %>
>
> Or you can reimplement render_mako and change the default template variables.

Or you can stick with Pylons 0.10 for existing apps, which keeps all
the old aliases.

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

Reply via email to