def _msg(o, ml, mytitle=""): allstart() if o == "msg": mo = api.get_msg(ml) + {"msgid": ml} local.r.page_title = mo.subj + " @ " + mo.echoarea lst = [mo] elif o == "lst" or o == "lstall": lst = [api.get_msg(n) + {"msgid": n} for n in ml] local.r.page_title = mytitle or u"Список сообщений" return template("tpl/msg.html", lst=[mo] if o not in ("lst", "lstall") else lst, r=local.r, mytitle=mytitle, lim=o)
def _msg(o, ml, mytitle=''): allstart() if o == 'msg': mo = api.get_msg(ml) + {'msgid': ml} local.r.page_title = mo.subj + ' @ ' + mo.echoarea lst = [mo] elif o == 'lst' or o == 'lstall': lst = [api.get_msg(n) + {'msgid': n} for n in ml] local.r.page_title = mytitle or u'Список сообщений' return template('tpl/msg.html', lst=[mo] if o not in ('lst', 'lstall') else lst, r=local.r, mytitle=mytitle, lim=o)
def index_list(ea, repto): allstart() if repto and repto != '-': local.r.repto = repto local.r.rmsg = api.get_msg(repto) if not flt.echo_flt(ea): return ea local.r.page_title = u'message to ' + ea return template('tpl/mform.html', r=local.r, ea=ea)
def index_list(ea, repto): allstart() if repto and repto != "-": local.r.repto = repto local.r.rmsg = api.get_msg(repto) if not flt.echo_flt(ea): return ea local.r.page_title = u"message to " + ea return template("tpl/mform.html", r=local.r, ea=ea)