On Wed, Apr 07, 2010 at 11:16:00PM -0700, Didip Kerabat wrote:
> Hi all,
> 
> I've heard that url_for() is going to be deprecated in favor of url(). Is
> that correct?
> 
> That said, I saw only url_for method in routes/util.py source code.
> 
> Can anyone enlighten me?

url() is not a Routes thing, it's a Pylons thing:

  from pylons import url

  url(controller='foo', action='bar', id=42)

It is an instance of routes.util.URLGenerator(), wrapped in a
StackedObjectProxy.

Incidentally, it doesn't help that the doc index on pylonshq.com has the
wrong url() listed in http://pylonshq.com/docs/en/0.9.7/index/#U

Marius Gedminas
-- 
I have yet to see any problem, however complicated, which, when
you looked at it in the right way, did not become still more complicated.
                -- Poul Anderson

Attachment: signature.asc
Description: Digital signature

Reply via email to