Beispiel #1
0
def get_msg(msg):
    response.set_header ('content-type','text/plain; charset=utf-8')
    return api.raw_msg(msg)
Beispiel #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
Beispiel #3
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] )
Beispiel #4
0
def get_bundle_msg(n):
    return api.mk_jt(n, api.raw_msg(n)) + '\n'
Beispiel #5
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])
Beispiel #6
0
def get_msg(msg):
    response.set_header('content-type', 'text/plain; charset=utf-8')
    return api.raw_msg(msg)
Beispiel #7
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
Beispiel #8
0
def get_bundle_msg(n):
    return api.mk_jt(n, api.raw_msg(n)) + "\n"