20 messages in com.googlegroups.pylons-discussRe: Trouble with Routes
FromSent OnAttachments
Dan Korostelev24 Aug 2007 01:38 
Marcin Kasperski24 Aug 2007 02:49 
Dan Korostelev24 Aug 2007 02:56 
Ben Bangert25 Aug 2007 09:42 
Marcin Kasperski27 Aug 2007 02:27 
Ben Bangert27 Aug 2007 08:35 
Marcin Kasperski27 Aug 2007 09:20 
Ben Bangert27 Aug 2007 10:00 
Neil Blakey-Milner27 Aug 2007 10:42 
Ben Bangert29 Aug 2007 10:11 
Marcin Kasperski30 Aug 2007 03:44 
Jose Galvez30 Aug 2007 18:07 
Ben Bangert30 Aug 2007 18:13 
Jose Galvez30 Aug 2007 20:07 
Ben Bangert31 Aug 2007 09:00 
Jose Galvez31 Aug 2007 13:02 
Ben Bangert31 Aug 2007 13:31 
Jose Galvez31 Aug 2007 14:25 
Ben Bangert31 Aug 2007 15:13 
Jose Galvez31 Aug 2007 16:43 
Subject:Re: Trouble with Routes
From:Ben Bangert (ben-@public.gmane.org)
Date:08/25/2007 09:42:36 AM
List:com.googlegroups.pylons-discuss

On Aug 24, 2007, at 2:56 AM, Dan Korostelev wrote:

Yeah, I also worked around the problem this way, but I don't like it. Looks like there's a bug in Routes. Thanks for information.

There's no bug in routes, this is exactly how it works, and how the docs indicate it works. From the docs (http://routes.groovie.org/ manual.html): "We saw earlier how the route name ties a set of defaults to a name. We can use this name with our Route functions and its as if we used that set of keyword args"

The route name does *not* mean that the route its at will actually be the path generated. It means that the default args you give for that route will be pulled in as if you had specified them in the url_for.

Cheers, Ben