Пример #1
0
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
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")