当前位置: 首页>>代码示例>>Python>>正文


Python Element.buildPath方法代码示例

本文整理汇总了Python中suds.sax.element.Element.buildPath方法的典型用法代码示例。如果您正苦于以下问题:Python Element.buildPath方法的具体用法?Python Element.buildPath怎么用?Python Element.buildPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在suds.sax.element.Element的用法示例。


在下文中一共展示了Element.buildPath方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: build_schema

# 需要导入模块: from suds.sax.element import Element [as 别名]
# 或者: from suds.sax.element.Element import buildPath [as 别名]
 def build_schema(self):
     """ Process L{Types} objects and create the schema collection """
     container = SchemaCollection(self)
     for t in [t for t in self.types if t.local()]:
         for r in t.contents():
             entry = (r, self)
             container.add(entry)
     if not len(container): # empty
         r = Element.buildPath(self.root, 'types/schema')
         entry = (r, self)
         container.add(entry)
     self.schema = container.load()
     for s in [t.schema() for t in self.types if t.imported()]:
         self.schema.merge(s)
     return self.schema
开发者ID:bigbang4u2,项目名称:mywork,代码行数:17,代码来源:wsdl.py

示例2: build_schema

# 需要导入模块: from suds.sax.element import Element [as 别名]
# 或者: from suds.sax.element.Element import buildPath [as 别名]
 def build_schema(self):
     """Process L{Types} objects and create the schema collection."""
     container = SchemaCollection(self)
     for t in [t for t in self.types if t.local()]:
         for root in t.contents():
             schema = Schema(root, self.url, self.options, container)
             container.add(schema)
     if not len(container):
         root = Element.buildPath(self.root, "types/schema")
         schema = Schema(root, self.url, self.options, container)
         container.add(schema)
     self.schema = container.load(self.options)
     for s in [t.schema() for t in self.types if t.imported()]:
         self.schema.merge(s)
     return self.schema
开发者ID:ovnicraft,项目名称:suds,代码行数:17,代码来源:wsdl.py

示例3: build_schema

# 需要导入模块: from suds.sax.element import Element [as 别名]
# 或者: from suds.sax.element.Element import buildPath [as 别名]
 def build_schema(self):
     """Process L{Types} objects and create the schema collection."""
     loaded_schemata = {}
     container = SchemaCollection(self)
     for t in (t for t in self.types if t.local()):
         for root in t.contents():
             schema = Schema(root, self.url, self.options, loaded_schemata, container)
             container.add(schema)
     if not container:
         root = Element.buildPath(self.root, "types/schema")
         schema = Schema(root, self.url, self.options, loaded_schemata, container)
         container.add(schema)
     self.schema = container.load(self.options, loaded_schemata)
     #TODO: Recheck this XSD schema merging. XSD schema imports are not
     # supposed to be transitive. They only allow the importing schema to
     # reference entities from the imported schema, but do not include them
     # as their own content.
     for s in (t.schema() for t in self.types if t.imported()):
         self.schema.merge(s)
     return self.schema
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:22,代码来源:wsdl.py


注:本文中的suds.sax.element.Element.buildPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。