> Hi there, I have a route that looks like this:
>
> map.connect('/wiki/*slug',
> controller="wiki",
> action="view")
>
> Later on I try to expand my wiki links with
>
> url = h.url_for(controller="/wiki",
> action="view",
> slug=normalize_page(page))
> return '<a href="%s">%s</a>' % (url, label or page)
>
> What I get is something like:
>
> <a href="/wiki/">foo</a>
The bug was in a greedy regexp to get label and page. The regexp was
greedy for label and consumed everyting so page was an empty string.
Routes works perfectly fine and exactly how we all expext it to.
Best regards,
--
Yannick Gingras
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---