示例#1
0
 class ProductEdition(ComplexModel):
     __namespace__ = tns
     id = XmlAttribute(Uuid)
     if custom_root:
         name = XmlData(Uuid)
     else:
         name = XmlData(Unicode)
示例#2
0
文件: test_xml.py 项目: skumyol/spyne
        class Action(ComplexModel):
            class Attributes(ComplexModel.Attributes):
                sub_ns = "SOME_NS"
                sub_name = "Action"

            data = XmlData(Unicode)
            must_understand = XmlAttribute(Unicode)
示例#3
0
        class SomeClass(TableModel):
            __tablename__ = 'some_class'
            __table_args__ = {"sqlite_autoincrement": True}

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