I am using resource mapper in Routes (1.9) to get rest style URL, e.g.
map.resource('message', 'messages'). The problem is that I can't show
a resource in a particular format, e.g. /messages/12.json , because
"12.json" will be assigned to the id variable while the format
variable remains empty.

This can be fixed by reversing the order of the last 2 connect lines
in routes/mapper.py. Once reversed, "12" will be assigned to id and
"json" will be assigned to format.

Patch is attached.

Regards,
Yap

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

Attachment: resource_show_formatted.patch
Description: Binary data

Reply via email to