Changeset 1111
- Timestamp:
- 05/25/06 12:49:31
- Files:
-
- trunk/cherrypy/_cptree.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cptree.py
r1108 r1111 43 43 def mount(self, root, script_name="", conf=None): 44 44 """Mount a new app from a root object, script_name, and conf.""" 45 if script_name == "/":46 script_name = ""45 # Next line both 1) strips trailing slash and 2) maps "/" -> "". 46 script_name = script_name.rstrip("/") 47 47 app = Application(root, script_name, conf) 48 48 self.apps[script_name] = app

