Example #1
0
 class MyStuff(dexml2.Model):
     items = fields.Dict(item, key="name", required=False)
Example #2
0
 class MyStuff(dexml2.Model):
     items = fields.Dict(item, key="wrongname")
Example #3
0
 class SaneDict(dexml2.Model):
     item = fields.Dict(GreedyField(tagname="item"), key="name")
Example #4
0
 class obj(dexml2.Model):
     items = fields.Dict('item', key='name', dictclass=_dict)
Example #5
0
 class obj(dexml2.Model):
     items = fields.Dict('item', key='name', tagname='items')
Example #6
0
 class obj(dexml2.Model):
     items = fields.Dict(fields.Model(item), key='name', unique=True)