예제 #1
0
class ListTestObject(xmlmap.XmlObject):
    str = xmlmap.StringListField('baz')
    int = xmlmap.IntegerListField('bar')
    letters = xmlmap.StringListField('l')
    empty = xmlmap.StringListField('missing')
    nodes = xmlmap.NodeListField('sub', SubList)
예제 #2
0
 class TestObject(xmlmap.XmlObject):
     vals = xmlmap.IntegerListField('bar/baz')
     missing = xmlmap.IntegerListField('missing', required=False)