Esempio n. 1
0
class BooleanAttributeModel:
    _model = SN(toast=0,
                yellow=False,
                feather="true",
                something="cheese",
                deflt="asdf")
    toast = BooleanAttribute("toast", "toast")
    yellow = BooleanAttribute("yellow", "yellow")
    feather = BooleanAttribute(("feather", str), "yellow")
    true = BooleanAttribute(const(True))
    deflt = BooleanAttribute("deflt", default=False)
    something = BooleanAttribute("something")
Esempio n. 2
0
class AttributeWithConstSetter:
    _model = SN(_name=12)
    name = Attribute('_name', ('_name', const("the_name")))
Esempio n. 3
0
class AttributeWithConst:
    _model = None
    name = Attribute(const("the_name"))
Esempio n. 4
0
 class FhirMap:
     active = Attribute(const(True))
     name = Attribute("_name", "_name")
     age = Attribute("_age", "_age")