Esempio n. 1
0
def jt_outmsg(h):
    response.set_header ('content-type','text/plain; charset=utf-8')
    lst = [x for x in h.split('/') if len(x) == 20]
    return '\n'.join( [api.mk_jt(x,api.raw_msg(x)) for x in lst] )
Esempio n. 2
0
def get_bundle_echo(n):
    lo = ''
    for x in parse_echos(n):
        lo += api.mk_jt(x, api.raw_msg(x)) + '\n'
    return lo
Esempio n. 3
0
def get_bundle_msg(n):
    return api.mk_jt(n, api.raw_msg(n)) + '\n'
Esempio n. 4
0
def jt_outmsg(h):
    response.set_header('content-type', 'text/plain; charset=iso-8859-1')
    lst = [x for x in h.split('/') if len(x) == 20 or len(x) == 8]
    return '\n'.join([api.mk_jt(x, api.raw_msg(x)) for x in lst])
Esempio n. 5
0
def get_bundle_echo(n):
    lo = ""
    for x in parse_echos(n):
        lo += api.mk_jt(x, api.raw_msg(x)) + "\n"
    return lo
Esempio n. 6
0
def get_bundle_msg(n):
    return api.mk_jt(n, api.raw_msg(n)) + "\n"