On 6/7/07, David Niergarth <[EMAIL PROTECTED]> wrote:
>
> 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.

It probably is.  I found another case today where the default route caught it.

/incident/1/category
    controller="incident", action="1", id="category"

I commented out the default route since I'm not using it.  I left the
template route though.

-- 
Mike Orr <[EMAIL PROTECTED]>

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