def E_ivars(self): ivars = [] for k, v in self.req.params.items(): if k.startswith('auth_'): continue ivars.append(E.ivar(E.name(k), E.value(v))) return E.ivars(*ivars)
def E_main(self): return E.main(E.bgcolor("darkgray"), E.menu(E.href('/'), E.color(u"white"), E.name(u"главная")), E.menu(E.href('/threads'), E.color(u"white"), E.name(u"задания")), E.menu(E.href('/reports'), E.color(u"white"), E.name(u"отчеты")), E.menu(E.href('/passwd'), E.color(u"white"), E.name(u"смена пароля")), E.menu(E.href('/search'), E.color(u"white"), E.name(u"поиск")), E.menu(E.href('/info'), E.color(u"white"), E.name(u"справка")), E.menu(E.href('/auth'), E.color(u"white"), E.name(u"выход")), E.link(E.href('/hd'), E.color(u"blue"), E.name(u"HELPDESK")), )