def __init__(self, rp): """ """ self.ctx = dict() self.ctx["page"] = self self.title = f("Base {rp}") self.gen = time.time() self.ctx["model"] = self.model = Model() self.ctx["proc"] = proc
def __init__(self,rp): """ """ self.ctx = dict() self.ctx["page"] = self self.title = f("Base {rp}") self.gen = time.time() self.ctx["model"] = self.model = Model() self.ctx["proc"] = proc
def __init__(self, file): super().__init__(file) self.title = f("Dir {file.path}") ## self.model.file_dirs = list() self.model.file_files = list() self.model.files = list() for name in file.listdir(): sfile = file.subfile(name) self.model.files.append(sfile) if sfile.isdir: self.model.file_dirs.append(sfile) else: self.model.file_files.append(sfile)
def __init__(self,file): super().__init__(file) self.title = f("Dir {file.path}") ## self.model.file_dirs = list() self.model.file_files = list() self.model.files = list() for name in file.listdir(): sfile = file.subfile(name) self.model.files.append(sfile) if sfile.isdir: self.model.file_dirs.append(sfile) else: self.model.file_files.append(sfile)
def start_browser(): webbrowser.open(f("http://{host}:{port}"), 0, True)
def index(rp): log.debug(f("request path {rp}")) entry = make_entry(rp) return entry.render()
def __init__(self, rp, ex): super().__init__(rp) self.title = f("Error {rp}") self.model.ex = ex self.model.extext = str(ex)
def __init__(self, file): super().__init__(file) self.title = f("Reg {file.path}") self.model.data = self.make_file_data()
def __init__(self, file): super().__init__(file.path) self.title = f("EFile {file.path}") self.file = file self.model.file = file
def __init__(self,rp,ex): super().__init__(rp) self.title = f("Error {rp}") self.model.ex = ex self.model.extext = str(ex)
def __init__(self,file): super().__init__(file) self.title = f("Reg {file.path}") self.model.data = self.make_file_data()
def __init__(self,file): super().__init__(file.path) self.title = f("EFile {file.path}") self.file = file self.model.file = file