I´m trying map clean urls with no luck, Its definately something I do
not understand in routes.
# controller
class TestController(BaseController):
def index(self):
return Response('boomer')
def tada1(self):
return Response('<b>tada1</b>')
def tada2(self):
return Response('<b>tada2</b>')
# routes
map.connect('test', controller=test', action='index')
map.connect('test1', '', controller='test', action='tada1')
map.connect(''', controller='test', action='tada1')
map.connect('test1', '', controller='test', action='tada2')
map.connect(''', controller='test', action='tada2')
the paster server serves the pages "/test/test1" and "/test/test2"
but not "/test1" or "/test2". Could someone tell me what I´m doing
wrong?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---