示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 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)