'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(u'/')
    if (url == u''):
        return self.index(request)
    elif (u'/' in url):
        return self.model_page(request, *url.split(u'/', 2))
    raise http.Http404(u'The    requested    databrowse    page    does    not    exist.')
