Changeset 1294
- Timestamp:
- 08/28/06 18:43:17
- Files:
-
- trunk/cherrypy/lib/cptools.py (modified) (1 diff)
- trunk/cherrypy/test/test_core.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/cptools.py
r1288 r1294 241 241 cherrypy.log('\nRequest Headers:\n' + '\n'.join(h), "HTTP") 242 242 243 def redirect(url=''): 244 """Raise cherrypy.HTTPRedirect to the given url.""" 245 raise cherrypy.HTTPRedirect(url) 243 def redirect(url='', internal=True): 244 """Raise InternalRedirect or HTTPRedirect to the given url.""" 245 if internal: 246 raise cherrypy.InternalRedirect(url) 247 else: 248 raise cherrypy.HTTPRedirect(url) trunk/cherrypy/test/test_core.py
r1290 r1294 112 112 _cp_config = {"tools.err_redirect.on": True, 113 113 "tools.err_redirect.url": "/errpage", 114 "tools.err_redirect.internal": False, 114 115 } 115 116

