def get_msg(msg): response.set_header ('content-type','text/plain; charset=utf-8') return api.raw_msg(msg)
def get_bundle_echo(n): lo = '' for x in parse_echos(n): lo += api.mk_jt(x, api.raw_msg(x)) + '\n' return lo
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] )
def get_bundle_msg(n): return api.mk_jt(n, api.raw_msg(n)) + '\n'
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])
def get_msg(msg): response.set_header('content-type', 'text/plain; charset=utf-8') return api.raw_msg(msg)
def get_bundle_echo(n): lo = "" for x in parse_echos(n): lo += api.mk_jt(x, api.raw_msg(x)) + "\n" return lo
def get_bundle_msg(n): return api.mk_jt(n, api.raw_msg(n)) + "\n"