Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def dump_value(v):
    data = {
        "id": v.node_trn,
        "errors": v.errors,
        "value": v._value,
    }
    return json.dumps(data)
        


src/c/i/circuits-3.0.0.dev/tests/node/test_utils.py   circuits(Download)
def test_values():
    from circuits.node.utils import dump_value, load_value
    from circuits.core.values import Value
 
    v = Value()
    v.value = 'foo'
    v.errors = False
    v.node_trn = 1
 
    s = dump_value(v)