Example #1
0
def browse_goto(path, db):
    controller = Browse(cfg, db)
    return controller.goto(path)
Example #2
0
def browse_(db):
    controller = Browse(cfg, db)
    return controller.hosts()
Example #3
0
def browse_dir(path, db):
    if not request.url.endswith('/'):
        redirect('%s/' % request.url)

    controller = Browse(cfg, db)
    return controller.browse(path)
Example #4
0
 def browse(db):
     controller = Browse(self.cfg, db)
     return controller.hosts()