On Apr 23, 9:49 am, Ksenia Marasanova <[EMAIL PROTECTED]>
wrote:

> map.connect('news/:action/:id', controller='news', action='index',  
> id=None)
>
> When I use url_for(controller='news', action='index') in a method  
> with empty ID, or outside the news controller, it generates url /news/
> index as expected. When I use it inside the method with ID specified  
> (e.g. /news/edit/23), it generates url /news/index/2 instead, which  
> is wrong.
> Is this the intended behaviour or a bug?

It's intended behavior. Take a look at section 4.2 in the Routes
Manual on Route Memory.

--
Ron


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