def __init__(self): MetaBuilder.__init__(self) self.model_by_name(self.KITE) self.property("design", one_of=["Indoor", "Water Kite", "Kythoon"]) self.property("line_material", type=str) self.property("StringLength", type=int)
def __init__(self): MetaBuilder.__init__(self) self.model(CreditCard)\ .property("ccnumber", type=str, length=16, required=True)\ .property("ccName", type=str, required=True)\ .property("extraLogo", type=Logo)