Hi all,

I'm trying to map urls to ids within my controller. The urls I'm trying to map 
are not the request url (routes has already taken care of that). I have some 
use 
cases where my app receives requests containing urls embedded inside the body 
of 
the request. For instance, I get a request such as:

POST /someprefix/tasks/id/1/subtasks
subtask=/someprefix/tasks/id/24

I need to map /someprefix/tasks/id/24 to the id 24 from the subtask url inside 
the body. I thought the best solution would be to use the routes mapper. The 
problem I'm running into is that the urls in the body still have a prefix 
attached (they were generated by url_for) so the mapper doesn't match them. How 
can I find out what prefix to strip out from the body urls? I would like to 
avoid duplicating the prefix config for my application.

Thanks,
   - shailesh


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