示例#1
0
 def __init__(self, *arg, **kw):
     SOAPFaultBase.__init__(self, *arg, **kw)
     ETreeSOAPExtensions.__init__(self)
     
     self.qname = QName(SOAPFaultBase.DEFAULT_ELEMENT_NS, 
                        tag=SOAPFaultBase.DEFAULT_ELEMENT_LOCAL_NAME, 
                        prefix=SOAPFaultBase.DEFAULT_ELEMENT_NS_PREFIX)
示例#2
0
 def _setFaultCode(self, value):
     """Override to enable ns prefix to be inferred if not added in already
     """
     if value.startswith(self.__class__.FAULT_CODE_ELEMENT_NAME.prefix):
         _value = value
     else:
         _value = "%s:%s" % (SOAPFaultBase.DEFAULT_ELEMENT_NS_PREFIX, value)
     
     SOAPFaultBase._setFaultCode(self, _value)