Example #1
0
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)
Example #2
0
File: run.py Project: 6vasia/ii-web
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)
Example #3
0
File: run.py Project: 6vasia/ii-web
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)
Example #4
0
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)