On Wed, Nov 19, 2008 at 7:05 PM, Mike Orr <[EMAIL PROTECTED]> wrote:
> Looking at your modules, I didn't know Routes had an .append_slash
> option but that could be throwing it off.  There's no reason to put
> slashes at the end of URLs except to make it look like a directory to
> the user, but even then it's not necessary (/messages and
> /messages/1234 work fine).

I prefer ending urls with / :-D

> You can turn on route debugging to see if it gives any clues.  Add
> this to development.ini:
>
> ===
> [logger_routes]
> level = DEBUG
> handlers =
> qualname = routes.middleware
> ===

Thanks to the above bit of extra debugging, I found out what my
problem was... in my routing.py (which I erroneously called
"routes.py" earlier) I had the following lines:

    map.connect('/', controller='dashboard', action='index', id=None)
    map.connect('/{controller}/{action}', id=None)
    map.connect('/{controller}/{action}/{id}')

I had to change them to this:

    map.connect('/', controller='dashboard', action='index', id=None)
    map.connect('/{controller}/{action}/', id=None)
    map.connect('/{controller}/{action}/{id}/')

Notice the appended slash?

-- 
Raoul Snyman
B.Tech Information Technology (Software Engineering)
E-Mail:   [EMAIL PROTECTED]
Web:      http://www.saturnlaboratories.co.za/
Blog:      http://blog.saturnlaboratories.co.za/
Mobile:   082 550 3754
Registered Linux User #333298 (http://counter.li.org)

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