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