On Apr 16, 2010, at 2:37 AM, Mike Orr wrote:

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

Yeah, I was just following the tutorial and getting 'Internal Server Error' 
until I realized that things have moved around a bit.

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

I was walking through this which references h.url()

http://pylonshq.com/docs/en/1.0/forms/#the-basics


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


Thanks,

-jack

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

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