'Handles main URL routing for the databrowse app.
`url` is the remainder of the URL -- e.g. \'comments/comment/\'.'

def root(self, request, url):

    self.root_url = request.path[:(len(request.path) - len(url))]
    url = url.rstrip('/')
    if (url == ''):
        return self.index(request)
    elif ('/' in url):
        return self.model_page(request, *url.split('/', 2))
    raise http.Http404('The    requested    databrowse    page    does    not    exist.')
