Changeset 2039
- Timestamp:
- 09/27/08 14:22:10
- Files:
-
- trunk/cherrypy/_cptree.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cptree.py
r1989 r2039 154 154 root: an instance of a "controller class" (a collection of page 155 155 handler methods) which represents the root of the application. 156 This may also be an Application instance, or None if using 157 a dispatcher other than the default. 156 158 script_name: a string containing the "mount point" of the application. 157 159 This should start with a slash, and be the path portion of the … … 173 175 174 176 # If mounted at "", add favicon.ico 175 if script_name == "" and root and not hasattr(root, "favicon_ico"): 177 if (script_name == "" and root is not None 178 and not hasattr(root, "favicon_ico")): 176 179 favicon = os.path.join(os.getcwd(), os.path.dirname(__file__), 177 180 "favicon.ico")

