Hi Folks,

I'm having some problems with my pylons routing table, and it seems to
be behaving inconsistently.  Probably, I am not using it correctly.  I
have the following mappings set up:

map.connect('home','/home', controller='home', action='index')
map.connect('my_page', '/my-page', controller='page', action='index')
map.connect('object', '/object/{object_id}', controller='obj_manager',
action='view_object')
map.connect('user_profile', '/profile', controller='user_profile',
action='index')

When I am at localhost:5000/home, all the links render appropriately
using ${url('my_page')} (for example) in a mako template.  But if I
visit a url to view an object in the system, like:

localhost:5000/object/809061dd-2946-4a7d-a505-475196dce5ee

then the link to 'my_page' and 'user_profile' direct, incorrectly, to

localhost:5000/object/my-page
localhost:5000/object/profile

but the 'home' link directs correctly to

localhost:5000/home

I can't see any difference in the way that these links are declared;
any one know what's going on?

Cheers,

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