On Wed, Apr 7, 2010 at 11:16 PM, Didip Kerabat <[email protected]> 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 a URLGenerator instance created by the RoutesMiddleware.

url_for is deprecated because it depends on a global singleton, and
because it uses the same function for several different purposes.

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