예제 #1
0
 def dereference(self):
     """
     Instruct all children to perform dereferencing.
     """
     all = []
     indexes = {}
     for child in self.children:
         child.content(all)
     deplist = DepList()
     for x in all:
         midx, deps = x.dependencies()
         item = (x, tuple(deps))
         deplist.add(item)
         indexes[x] = midx
     for x, deps in deplist.sort():
         midx = indexes.get(x)
         if midx is None: continue
         d = deps[midx]
         log.debug('(%s) merging %s <== %s', self.tns[1], Repr(x), Repr(d))
         x.merge(d)
예제 #2
0
 def dereference(self):
     """
     Instruct all children to perform dereferencing.
     """
     all = []
     indexes = {}
     for child in self.children:
         child.content(all)
     deplist = DepList()
     for x in all:
         midx, deps = x.dependencies()
         item = (x, tuple(deps))
         deplist.add(item)
         indexes[x] = midx
     for x, deps in deplist.sort():
         midx = indexes.get(x)
         if midx is None: continue
         d = deps[midx]
         log.debug('(%s) merging %s <== %s', self.tns[1], Repr(x), Repr(d))
         x.merge(d)
예제 #3
0
 def _suds_xsd_schema_dereference(self):
     """
     Instruct all children to perform dereferencing.
     """
     all = []
     indexes = {}
     for child in self.children:
         eventlet.sleep(0)
         child.content(all)
     deplist = DepList()
     for x in all:
         eventlet.sleep(0)
         x.qualify()
         midx, deps = x.dependencies()
         item = (x, tuple(deps))
         deplist.add(item)
         indexes[x] = midx
     for x, deps in deplist.sort():
         midx = indexes.get(x)
         if midx is None: continue
         d = deps[midx]
         # log.debug('(%s) merging %s <== %s', self.tns[1], repr(x), repr(d))
         x.merge(d)
         eventlet.sleep(0)