Hi Dmitri,
Starting with 2.1, httptools.redirect() was deprecated in favor of the
*exception* cherrypy.HTTPRedirect. The correct way to do redirects in
2.1 and 2.2 is:
raise cherrypy.HTTPRedirect('/somewhere/else')
Christian
which, incidentally, is not a particulary good decision ...
The following workaround was suggested, write a helper function and
return that:
def redirect(url):
cherrypy.HTTPRedirect(url).set_response()
return cherrypy.response.body