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 Book(DbObject):
     title = StrField("title")
     pages = CollectionField("pages")
Exemple #5
0
 class Book(DbObject):
     title = StrField("title")
Exemple #6
0
 class Book(DbObject):
     title = StrField("title")
     pages = CollectionField("pages", contained=False)
Exemple #7
0
 class Page(DbObject):
     book = StrField("book")
     number = IntField("number")
Exemple #8
0
 class Mock(DbObject):
     name=StrField("name")
     ref=ReferenceField("ref")
Exemple #9
0
 class Mock(DbObject):
     name = StrField("name")
     age = IntField("age")
Exemple #10
0
 class Mock(DbObject):
     name = StrField("name")