Hi, I'm not sure if this is actually a bug or I'm using it wrong (or
shouldn't be using it at all since it's sort of not obviously exposed
for usage), but here's what I mean:

# in config/routing.py
map = Mapper(directory=os.path.join(root_path, 'controllers'))
map.append_slash = True
[...]
map.connect('internships', controller='internships', action='list')

then

# in template
h.link_to('Next page', url=h.url(page=c.internship_pager.current.next))

gives me

http://localhost:5000/internships?page=1/

This looks to be because url_for appends that slash after the args have
been tacked on in mapper.generate

157       url = config.mapper.generate(**newargs)
158       if config.mapper.append_slash and not url.endswith('/'):
159           url += '/'

Am I doing something obviously wrong, or is this a bug? Works fine
without append_slash, so I believe the routes are setup okay..

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

Reply via email to