def setup_date_types():
    erlang.set_encoder(date_encoder)
    erlang.set_decoder(date_decoder)
    return Atom("ok")
示例#2
0
def setup_dasherl_components_type():
    """Setup a custom encoder for dasherl components, this should be render from erlang side"""
    set_decoder(dasherl_components_decoder)
    return Atom("ok")
示例#3
0
文件: jun_enc_dec.py 项目: zgbjgg/jun
def setup_dtype():
    set_encoder(dtype_encoder)
    set_decoder(dtype_decoder)
    return Atom(b'ok')
示例#4
0
def setup_decoders():
    set_decoder(decoders.decode)
示例#5
0
def setup_date_types():
    erlang.set_encoder(date_encoder)
    erlang.set_decoder(date_decoder)
    return Atom("ok")