Clean url mapping

2007-05-05 Thread voltron
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('tada1') def tada2(self): return Respo

Re: Clean url mapping

2007-05-09 Thread voltron
Hmm, I even tried this with separate controllers, is still does not work as expected. Does anyone have an idea? Thanks On May 5, 9:20 pm, voltron <[EMAIL PROTECTED]> wrote: > I´m trying map clean urls with no luck, Its definately something I do > not understand in routes. > > # controller > > cl

Re: Clean url mapping

2007-05-09 Thread Graham Higgins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9 May 2007, at 09:56, voltron wrote: >> # routes >> [...] >> map.connect(''', controller='test', action='tada1') >> [...] >> map.connect(''', controller='test', action='tada2') I'm not sure what the exact effect of those triple quotes would

Re: Clean url mapping

2007-05-09 Thread voltron
Oops, those are typos. Just to be sure. I made another quick test: map.connect(':controller/:action/:id') map.connect('*url', controller='template', action='view') map.connect('hello1', controller='hello', action='index') map.connect('hello2', '/test', controller='hello', action='test') I ca

Re: Clean url mapping

2007-05-09 Thread Graham Higgins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9 May 2007, at 15:48, voltron wrote: > > Oops, those are typos. Just to be sure. I made another quick test: > > I cant get this to render: > http://localhost:5000/test > I get a 404 error Have a look at the docstring in config/routing.py. It say

Re: Clean url mapping

2007-05-09 Thread Shannon -jj Behrens
On 5/9/07, Graham Higgins <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > On 9 May 2007, at 15:48, voltron wrote: > > > > > Oops, those are typos. Just to be sure. I made another quick test: > > > > I cant get this to render: > > http://localhost:5000/test > >

Re: Clean url mapping

2007-05-09 Thread voltron
Thanks Graham! Reordering the mappings worked :-)) On May 9, 5:57 pm, Graham Higgins <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 9 May 2007, at 15:48, voltron wrote: > > > > > Oops, those are typos. Just to be sure. I made another quick test: > > > I cant g