On Jun 6, 3:34 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote:
> I have a URL with a mandatory ID:
> /incident/123
>
> map.connect("incident", "/incident/:orr_id", controller="incident",
> action="index", requirements={"orr_id": NUMERIC})
>
> NUMERIC = R"\d+"
>
> This rule is somehow allowing "/incident/" through, causing an
> exception in my controller method:
Could it be that the default route still active in routing.py?
map.connect(':controller/:action/:id')
If so, it might be responsible. I have a similar problem but just
realized the default route is what's causing the unexpected behavior.
--David Niergarth
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---