Exemple #1
0
 class Mock(DbObject):
     name=StrField("name")
     number=IntField("number")
     dec=DecimalField("dec")
     b1 = BooleanField("b1")
     b2 = BooleanField("b2")
     d1 = DateField("d1")
Exemple #2
0
 class Mock(DbObject):
     name=StrField("name")
     number=IntField("number")
     dec=DecimalField("dec")
     dec2=DecimalField("dec2", fractionLength=2)
     b1 = BooleanField("b1")
     b2 = BooleanField("b2")
     d1 = DateField("d1")
     ref1 = ReferenceField('ref1')
     ref2 = ReferenceField('ref2')
Exemple #3
0
class Mock(DbObject):
    name = StrField("name")
    age = IntField("age")
    dob = DateField("dob")
    weight = DecimalField("weight")
    description = TextField("description")
Exemple #4
0
 class Page(DbObject):
     number = IntField("number")
Exemple #5
0
 class Page(DbObject):
     book = ReferenceField("book")
     number = IntField("number")
Exemple #6
0
 class Page(DbObject):
     book = StrField("book")
     number = IntField("number")
Exemple #7
0
 class Mock(DbObject):
     name = StrField("name")
     age = IntField("age")