|
|
|
|
@ -59,18 +59,6 @@ class TreeHandler(IPythonHandler):
|
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TreeRedirectHandler(IPythonHandler):
|
|
|
|
|
"""Redirect a request to the corresponding tree URL"""
|
|
|
|
|
|
|
|
|
|
@web.authenticated
|
|
|
|
|
def get(self, path=''):
|
|
|
|
|
url = url_escape(url_path_join(
|
|
|
|
|
self.base_url, 'tree', path.strip('/')
|
|
|
|
|
))
|
|
|
|
|
self.log.debug("Redirecting %s to %s", self.request.path, url)
|
|
|
|
|
self.redirect(url)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
# URL to handler mappings
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
|