Ejemplo n.º 1
0
 class ProductEdition(ComplexModel):
     __namespace__ = tns
     id = XmlAttribute(Uuid)
     if custom_root:
         name = XmlData(Uuid)
     else:
         name = XmlData(Unicode)
Ejemplo n.º 2
0
        class Action(ComplexModel):
            class Attributes(ComplexModel.Attributes):
                sub_ns = "SOME_NS"
                sub_name = "Action"

            data = XmlData(Unicode)
            must_understand = XmlAttribute(Unicode)
Ejemplo n.º 3
0
        class SomeClass(TableModel):
            __tablename__ = 'some_class'
            __table_args__ = {"sqlite_autoincrement": True}

            i = XmlAttribute(Integer32(pk=True))
            s = XmlData(Unicode(64))
Ejemplo n.º 4
0
 class C(ComplexModel):
     a = XmlData(Unicode)
     b = XmlAttribute(Unicode)
Ejemplo n.º 5
0
 class Category(ComplexModel):
     id = XmlData(Integer(min_occurs=1, max_occurs=1, nillable=False))
     children = Array(Unicode)
Ejemplo n.º 6
0
 class ProductEdition(ComplexModel):
     __namespace__ = tns
     id = XmlAttribute(Uuid)
     name = XmlData(Unicode)