Ejemplo n.º 1
0
def vs_conditions():
    return Transform(
        valuespec=VSExplicitConditions(rulespec=dummy_rulespec(),
                                       render="form_part"),
        forth=lambda c: RuleConditions("").from_config(c),
        back=lambda c: c.to_config_with_folder(),
    )
Ejemplo n.º 2
0
def vs_conditions():
    return Transform(
        VSExplicitConditions(rulespec=dummy_rulespec(), render="form_part"),
        forth=lambda c: RuleConditions(**c),
        back=lambda c: dict(c._asdict()),
    )