parameters: (url='', internal=True, debug=False)
docstring: Raise InternalRedirect or HTTPRedirect to the given url.
docstring_summary: Raise InternalRedirect or HTTPRedirect to the given url.
docstring_tokens: Raise InternalRedirect or HTTPRedirect to the given url .
function: def redirect(url='', internal=True, debug=False):
      """Raise InternalRedirect or HTTPRedirect to the given url."""
      if debug:
          cherrypy.log('Redirecting %sto: %s' %
                       ({True: 'internal ', False: ''}[internal], url),
                       'TOOLS.REDIRECT')
      if internal:
          raise cherrypy.InternalRedirect(url)
      else:
          raise cherrypy.HTTPRedirect(url)
function_tokens: def redirect ( url = '' , internal = True , debug = False ) : if debug : cherrypy . log ( 'Redirecting %sto: %s' % ( { True : 'internal ' , False : '' } [ internal ] , url ) , 'TOOLS.REDIRECT' ) if internal : raise cherrypy . InternalRedirect ( url ) else : raise cherrypy . HTTPRedirect ( url )