Esempio n. 1
0
 def __str__(self):
     s = ['\n']
     build = suds.__build__.split()
     s.append('Suds ( https://fedorahosted.org/suds/ )')
     s.append('  version: %s' % suds.__version__)
     s.append(' %s  build: %s' % (build[0], build[1]))
     for sd in self.sd:
         s.append('\n\n%s' % str(sd))
     return ''.join(s)
Esempio n. 2
0
 def startElement(self, name, attrs):
     top = self.top()
     node = Element(str(name))
     for a in attrs.getNames():
         n = unicode(a)
         v = unicode(attrs.getValue(a))
         attribute = Attribute(n,v)
         if self.mapPrefix(node, attribute):
             continue
         node.append(attribute)
     node.charbuffer = []
     top.append(node)
     self.push(node)
Esempio n. 3
0
 def __unicode__(self):
     return str(self)