Exemplo 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] )
Exemplo 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
Exemplo n.º 3
0
def get_bundle_msg(n):
    return api.mk_jt(n, api.raw_msg(n)) + '\n'
Exemplo 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])
Exemplo 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
Exemplo n.º 6
0
def get_bundle_msg(n):
    return api.mk_jt(n, api.raw_msg(n)) + "\n"