Exemple #1
0
        class junk(dexml2.Model):
            class meta:
                order_sensitive = True

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

            notes = fields.List(fields.String(tagname="note"), tagname="notes")
Exemple #11
0
 class obj(dexml2.Model):
     id = fields.String()
     attrs = fields.List(attr)