On Thu, Apr 15, 2010 at 9:38 PM, Jack Tihon <[email protected]> wrote:
> I was getting the same thing when I was trying to reference "h.url()" which 
> no longer exists.

It's not 'h.url' unless you import it to helpers.py that way.  It's
just 'url' in templates. In controllers and other modules it's 'from
pylons import url'.

> P.S.: Time to update the docs here as well since h.url() is now incorrect.

Which docs are out of date? the unfinished 1.0 docs are here:
http://pylonshq.com/docs/en/1.0/ . The Pylons book can't be changed,
although I've asked James to put an update page on the website. There
are no doubt lots of url_for's in the wiki, but those will take time
to hunt down and eradicate.

Note that WebHelpers Paginate still uses url_for so it's incompatible
with 1.0 -- or at least Page.pager() is. I'm waiting for a patch from
Christoph to fix that, but it will require a new function argument to
generate the page URLs. More info when it's ready.

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