Пример #1
0
        class junk(gexml.Model):
            class meta:
                order_sensitive = True

            name = fields.String(tagname=True)
            notes = fields.List(fields.String(tagname="note"))
            amount = fields.Integer(tagname=True)
Пример #2
0
 class breakfast(gexml.Model):
     meals = fields.List(fields.Choice("bacon", "cereal"))
Пример #3
0
 class MyStuff(gexml.Model):
     items = fields.List(fields.String(tagname="item"), required=False)
Пример #4
0
 class SaneList(gexml.Model):
     item = fields.List(GreedyField(tagname="item"))
Пример #5
0
 class obj(gexml.Model):
     items = fields.List(fields.String(tagname="item"), tagname="items")
Пример #6
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)
Пример #7
0
 class obj(gexml.Model):
     fs = fields.List(fields.String(tagname="val"))
Пример #8
0
 class obj(gexml.Model):
     fs = fields.List(fields.Model(FF), tagname="L")
Пример #9
0
 class obj(gexml.Model):
     fs = fields.List(fields.Model(FF))
Пример #10
0
        class Notebook(gexml.Model):
            class meta:
                order_sensitive = False

            notes = fields.List(fields.String(tagname="note"), tagname="notes")
Пример #11
0
 class obj(gexml.Model):
     id = fields.String()
     attrs = fields.List(attr)