コード例 #1
0
ファイル: run.py プロジェクト: 6vasia/ii-base
def get_msg(msg):
    response.set_header ('content-type','text/plain; charset=utf-8')
    return api.raw_msg(msg)
コード例 #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
コード例 #3
0
ファイル: run.py プロジェクト: 6vasia/ii-base
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] )
コード例 #4
0
def get_bundle_msg(n):
    return api.mk_jt(n, api.raw_msg(n)) + '\n'
コード例 #5
0
ファイル: run.py プロジェクト: gk11-ru/ii-elp
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])
コード例 #6
0
ファイル: run.py プロジェクト: 6vasia/ii-base
def get_msg(msg):
    response.set_header('content-type', 'text/plain; charset=utf-8')
    return api.raw_msg(msg)
コード例 #7
0
ファイル: mkbundle.py プロジェクト: 6vasia/ii-base
def get_bundle_echo(n):
    lo = ""
    for x in parse_echos(n):
        lo += api.mk_jt(x, api.raw_msg(x)) + "\n"
    return lo
コード例 #8
0
ファイル: mkbundle.py プロジェクト: 6vasia/ii-base
def get_bundle_msg(n):
    return api.mk_jt(n, api.raw_msg(n)) + "\n"