Hi !
I'm having an issue with URL parameters. I have these routes mapped on
my routing.py:
map.connect('/a_url_path/:param1/:param2', controller='some_controller',
> action='an_action')
map.connect('/another_url_path/', controller='some_controller',
> action='another_action')
>
and some_controller.an_action defined as:
def an_action(self, param1, param2):
> # Some work with param1 and param2
> return render('/some_template.mako')
On some_template.mako I have an anchor defined as:
${h.link_to('A Link', h.url_for(controller='some_controller',
> action='another_action'))}
>
The problem occurs when I navigate to /a_url_path/a_value/another_value. The
link on the page is rendered as
/another_url_path?param1=a_value¶m2=another_value. It's like all URL
parameters are propagated to the links. This doesn't happen always.. and I
cannot figure out the occurrence pattern. If I name the second route and
create the link using the name of the route, the parameters are not
propagated.
Can someone tell me how to avoid this?
--
Poli García
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---