Пример #1
0
def browse_dir(path, db):
    if not request.url.endswith('/'):
        redirect('%s/' % request.url)

    controller = Browse(cfg, db)
    return controller.browse(path)
Пример #2
0
def browse_goto(path, db):
    controller = Browse(cfg, db)
    return controller.goto(path)
Пример #3
0
def browse_(db):
    controller = Browse(cfg, db)
    return controller.hosts()
Пример #4
0
def browse_goto(path, db):
    controller = Browse(cfg, db)
    return controller.goto(path)
Пример #5
0
def browse_dir(path, db):
    if not request.url.endswith('/'):
        redirect('%s/' % request.url)

    controller = Browse(cfg, db)
    return controller.browse(path)
Пример #6
0
def browse_(db):
    controller = Browse(cfg, db)
    return controller.hosts()
Пример #7
0
 def browse(db):
     controller = Browse(self.cfg, db)
     return controller.hosts()