Hi,

I have a small annoying problem with default value in a simple route  
like this:

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?

Thanks,

--Ksenia




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