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
> > I get a 404 error
>
> Have a look at the docstring in config/routing.py. It sayeth:
>
> # The more specific and detailed routes should be defined first,
> # so they may take precedent over the more generic routes.
>
> So, at a guess, you might want to try a re-ordering:
>
> >  map.connect('hello1', controller='hello', action='index')
> >  map.connect('hello2', 'test', controller='hello', action='test')
> >  map.connect(':controller/:action/:id')
> >  map.connect('*url', controller='template', action='view')
>
> (Note, I removed the leading / from "/test", going by my own
> routing.py contents)
>
> HTH
>
> Cheers,
>
> Graham.

I'm no Routes expert, but is it really supposed to say:

    map.connect('hello2', 'test', controller='hello', action='test')

It seems like 'hello2' shouldn't be there.

-jj
-- 
http://jjinux.blogspot.com/

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