On May 30, 11:09 am, Krishnakant Mane <[email protected]> wrote:
> On Sunday 30 May 2010 10:47 PM, Alexandre Conrad wrote:
>
> > Hello Krishnakant,
>
> > you will find answers to your questions by following the 1.0 upgrading
> > instructions:
>
> >http://pylonshq.com/docs/en/1.0/upgrading/
>
> Thanks alexandre.
> This really clears all things.  I just wanted to confirm one thin.
> I understand that instead of h.url_for() I will need to use h.url().
> Is that right?  I am confused because I did not see the reference to the
> webhelpers module aliased as h any where in the migration document.
> so is the call h.url, or just url()?
>
> Same confusion is regarding the redirect.
> I see one line which refers to pylons.url.
> So I wonder whether the webhelper aliased as h is used or not with
> reference to url()

Pylons injects a few things into the template context for you along
with `h`, including (off the top of my head) `url`, `config`,
`request`, and `response`. You don't need to prefix any of those with
`h.`.

The full list of default template variables is here:

http://pylonshq.com/docs/en/1.0/views/#default-template-variables

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