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)
class obj(gexml.Model): items = fields.Dict(fields.Model(item), key='name', unique=True)
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)
class pets(petbase): person = fields.Model() pet1 = fields.Model("pet") pet2 = fields.Model(pet, required=False)
class obj(gexml.Model): fs = fields.Model(FF, tagname="subFF")
class obj(gexml.Model): fs = fields.List(fields.Model(FF), tagname="L")
class obj(gexml.Model): fs = fields.List(fields.Model(FF))
class Whoopsie(gexml.Model): value = fields.Model(("W:", "UndefinedModel"))
class B(gexml.Model): class meta: namespace = 'http://yyy' b = fields.Model(A)