Graham Stratton wrote:
> Hi,
> 
>>From the routes docs it looks like when I specify a function in the
> conditions for a match, I can modify match_dict.  I tried doing this
> to convert my ids to integers, but things went wrong when line 83 of
> routes/middleware.py tried to unquote the int.  Should this be
> possible, and if so how should I do it?

You're doing it right, thats a bug in the middleware.py. I've committed
a fix to Routes to remedy this and only unquote when its a string. BTW,
to avoid having your filter function throw an exception, or have to put
the int() calls in a try/except, I'd recommend putting in a requirements
regexp on the id's to ensure they're int's in advance.

Cheers,
Ben

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