예제 #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
파일: test_xml.py 프로젝트: shopistan/spyne
 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)