Пример #1
0
 class pets(gexml.Model):
     person = fields.Model()
     pets = fields.List("pet", minlength=1)
     notes = fields.List(fields.String(tagname="note"), maxlength=2)
     rewards = fields.List("reward", tagname="rewards", required=False)
Пример #2
0
 class obj(gexml.Model):
     items = fields.Dict(fields.Model(item), key='name', unique=True)
Пример #3
0
 class pets(gexml.Model):
     person = fields.Model()
     pet1 = fields.Model("pet")
     pet2 = fields.Model(pet, required=False)
     pet3 = fields.Model((None, pet), required=False)
     vet = fields.Model((None, "Vet"), required=False)
Пример #4
0
 class pets(petbase):
     person = fields.Model()
     pet1 = fields.Model("pet")
     pet2 = fields.Model(pet, required=False)
Пример #5
0
 class obj(gexml.Model):
     fs = fields.Model(FF, tagname="subFF")
Пример #6
0
 class obj(gexml.Model):
     fs = fields.List(fields.Model(FF), tagname="L")
Пример #7
0
 class obj(gexml.Model):
     fs = fields.List(fields.Model(FF))
Пример #8
0
 class Whoopsie(gexml.Model):
     value = fields.Model(("W:", "UndefinedModel"))
Пример #9
0
        class B(gexml.Model):
            class meta:
                namespace = 'http://yyy'

            b = fields.Model(A)