Пример #1
0
def index_list(echo, year):
    allstart()
    ea = "%s.%s" % (echo, year)
    if not flt.echo_flt(ea):
        return ea
    local.r.update(page_title=ea, echolist=echolist, ea=ea, url=url)
    return template("tpl/echoarea.html", r=local.r, j=api.get_echoarea(ea))
Пример #2
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)
Пример #3
0
def qmsg_post(ea):
    allstart()
    rq = request.forms
    if not flt.echo_flt(ea): return ea
    if not request.forms.msg or not request.forms.subj: return ''
    us = False if url.endswith('/z/') else True
    om.om(ea, rq.subj, rq.msgto, rq.msg, rq.repto, us)
    redirect('/h/out')
Пример #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)
Пример #5
0
def qmsg_post(ea):
    allstart()
    rq = request.forms
    if not flt.echo_flt(ea):
        return ea
    if not request.forms.msg or not request.forms.subj:
        return ""
    us = False if url.endswith("/z/") else True
    om.om(ea, rq.subj, rq.msgto, rq.msg, rq.repto, us)
    redirect("/h/out")
Пример #6
0
def index_list(echo, year):
    allstart()
    ea = '%s.%s' % (echo, year)
    if not flt.echo_flt(ea): return ea
    local.r.update(page_title=ea, echolist=echolist, ea=ea, url=url)
    return template('tpl/echoarea.html', r=local.r, j=api.get_echoarea(ea))