Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #594 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

[PATCH] prevent turbogears.url fro adding extra '/' if cherrypy's mount_point is '/'

Reported by: victor.kryukov Owned by: anonymous
Priority: normal Milestone:
Component: CherryPy Version:
Severity: normal Keywords:
Cc:

Description

turbogears.url adds extra '/' to the beggining of the url if cherrypy.tree.mount_point() == '/', e.g.

turbogears.url('/someurl') becomes 'someurl'

The attached obvious patch fixes this.

Attachments

util.diff Download (510 bytes) - added by victor.kryukov 13 years ago.
Proposed patch to fix turbogears.url in turbogears\util.py

Change History

Changed 13 years ago by victor.kryukov

Proposed patch to fix turbogears.url in turbogears\util.py

comment:1 Changed 13 years ago by simon

  • Status changed from new to closed
  • Resolution set to fixed

Commited in r794. Thanks!

Note: See TracTickets for help on using tickets.