rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
self.initdef += '\n%sself.ofwhat += self.ofwhat + tuple(TCList)' % ID4 self.initdef += '\n%sself.lenofwhat += self.lenofwhat + len(TCList)' % ID4 | self.initdef += '\n%sself.ofwhat += tuple(TCList)' % ID4 self.initdef += '\n%sself.lenofwhat += len(TCList)' % ID4 | self.initdef += '\n%sself.ofwhat += self.ofwhat + tuple(TCList)' % ID4 | b19c6144f6077d62331be9df1f68aba50b517db6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/b19c6144f6077d62331be9df1f68aba50b517db6/wsdl2python.py |
def getSchemaDict(self): """return dictionary of schema adapter objects """ | ef48a7e491144a06cc03a22b64108656c43da52d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/ef48a7e491144a06cc03a22b64108656c43da52d/wsdlInterface.py | ||
elif hasattr(self._content.derivation, 'content') and \ hasattr(self._content.derivation.content, 'content') and \ self._content.derivation.content.content: t = self._content.derivation.content.content[0].\ attributes['type'][1] | elif self._content.derivation.attr_content and \ self._content.derivation.attr_content[0].attributes.\ has_key('http://schemas.xmlsoap.org/wsdl/') \ and self._content.derivation.attr_content[0].\ attributes['http://schemas.xmlsoap.org/wsdl/']\ .has_key('arrayType'): t = self._content.derivation.attr_content[0].\ attrib... | def getArrayType(self): | ef48a7e491144a06cc03a22b64108656c43da52d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/ef48a7e491144a06cc03a22b64108656c43da52d/wsdlInterface.py |
except Exception: | except: | def Receive(self, replytype=None, **kw): '''Parse message, create Python object. if replytype is None, use TC.Any to dynamically parse; otherwise it can be a Python class or the typecode to use in parsing. ''' self.ReceiveSOAP(**kw) if self.ps.IsAFault(): msg = FaultFromFaultMessage(self.ps) raise TypeError("Unexpected... | 8ce3e136f272f678b6bd0e8d4ecb125b9a34c9e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/8ce3e136f272f678b6bd0e8d4ecb125b9a34c9e8/client.py |
def __init__(self, name): | def __init__(self, name=None): | def __init__(self, name): self.name = name or id(self) self.z = 'z value' | 07b6029f13e60ae80b1501520310e88ad1c138d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/07b6029f13e60ae80b1501520310e88ad1c138d5/t1.py |
self.testInst.failUnlessEqual(origLine, testLine) | if origLine != testLine: line = origLine while line and line != self.divider: line = self.origStrFile.readline() self.testInst.failUnlessEqual(origLine, testLine) | def failUnlessEqual(self, buffer): """failUnlessEqual takes either a string or a StringIO instance as input, and compares it against the original output from the test file. """ # if not already a string IO if not isinstance(buffer, StringIO.StringIO): testStrFile = StringIO.StringIO(buffer) else: testStrFile = buffer t... | 166d36379cc1c72ffad137bac456269b6c9577c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/166d36379cc1c72ffad137bac456269b6c9577c8/utils.py |
testStrFile.close() | def failUnlessEqual(self, buffer): """failUnlessEqual takes either a string or a StringIO instance as input, and compares it against the original output from the test file. """ # if not already a string IO if not isinstance(buffer, StringIO.StringIO): testStrFile = StringIO.StringIO(buffer) else: testStrFile = buffer t... | 4d202681c3b5ea4e963bcfd83b57ca90ab3f26b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/4d202681c3b5ea4e963bcfd83b57ca90ab3f26b5/utils.py | |
print >>self, self.WARN, self.msg, | print >>self, BasicLogger.WARN, self.msg, | def warning(self, msg, *args): if self.level < 1: return print >>self, self.WARN, self.msg, print >>self, msg %args | e73d6c3b9b47637e30f0c88733248b4aa41abd4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e73d6c3b9b47637e30f0c88733248b4aa41abd4a/logging.py |
print >>self, self.DEBUG, self.msg, | print >>self, BasicLogger.DEBUG, self.msg, | def debug(self, msg, *args): if self.level < 2: return print >>self, self.DEBUG, self.msg, print >>self, msg %args | e73d6c3b9b47637e30f0c88733248b4aa41abd4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e73d6c3b9b47637e30f0c88733248b4aa41abd4a/logging.py |
print >>self, self.ERROR, self.msg, | print >>self, BasicLogger.ERROR, self.msg, | def error(self, msg, *args): print >>self, self.ERROR, self.msg, print >>self, msg %args | e73d6c3b9b47637e30f0c88733248b4aa41abd4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e73d6c3b9b47637e30f0c88733248b4aa41abd4a/logging.py |
BasicLogger.setLevel(1) | BasicLogger.setLevel(WARN) | def setBasicLoggerWARN(): '''Use Basic Logger. ''' setLoggerClass(BasicLogger) BasicLogger.setLevel(1) | e73d6c3b9b47637e30f0c88733248b4aa41abd4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e73d6c3b9b47637e30f0c88733248b4aa41abd4a/logging.py |
BasicLogger.setLevel(2) | BasicLogger.setLevel(DEBUG) | def setBasicLoggerDEBUG(): '''Use Basic Logger. ''' setLoggerClass(BasicLogger) BasicLogger.setLevel(2) | e73d6c3b9b47637e30f0c88733248b4aa41abd4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e73d6c3b9b47637e30f0c88733248b4aa41abd4a/logging.py |
namespace = XMLNS | namespace = XMLNS.XML | def getNamespace(self, prefix): """prefix -- deference namespace prefix in node's context. Ascends parent nodes until found. """ namespace = None if prefix == 'xmlns': namespace = DOM.findDefaultNS(prefix, self.__node) else: try: namespace = DOM.findNamespaceURI(prefix, self.__node) except DOMException, ex: if prefix !... | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py |
class XMLSchemaComponent(XMLBase): | class XMLSchemaComponent(XMLBase, MarkerInterface): | def __str__(self): XMLBase.__rlock.acquire() XMLBase.__indent += 1 tmp = "<" + str(self.__class__) + '>\n' for k,v in self.__dict__.items(): tmp += "%s* %s = %s\n" %(XMLBase.__indent*' ', k, v) XMLBase.__indent -= 1 XMLBase.__rlock.release() return tmp | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py |
def __checkAttributes(self): """Checks that required attributes have been defined, attributes w/default cannot be required. Checks all defined attributes are legal, attribute references are not subject to this test. """ for a in self.__class__.required: if not self.attributes.has_key(a): raise SchemaError,\ 'class in... | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | ||
if (a != XMLSchemaComponent.xmlns) and\ | if (a not in (XMLSchemaComponent.xmlns, XMLNS.XML)) and\ | def __checkAttributes(self): """Checks that required attributes have been defined, attributes w/default cannot be required. Checks all defined attributes are legal, attribute references are not subject to this test. """ for a in self.__class__.required: if not self.attributes.has_key(a): raise SchemaError,\ 'class in... | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py |
"""Marker Interface: can determine something about an instances properties by using the provided convenience functions. """ class DefinitionMarker: """marker for definitions """ pass class DeclarationMarker: """marker for declarations """ pass class AttributeMarker: """marker for attributes """ pass class Attribu... | def getImportSchemas(self): """returns WSDLTools.WSDL types Collection """ return self._parent().types | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
class Import(XMLSchemaComponent, MarkerInterface): | class Import(XMLSchemaComponent): | def load(self, node): pnode = node.getParentNode() if pnode: pname = SplitQName(pnode.getTagName())[1] if pname == 'types': attributes = {} self.setAttributes(pnode) attributes.update(self.attributes) self.setAttributes(node) for k,v in attributes['xmlns'].items(): if not self.attributes['xmlns'].has_key(k): self.attri... | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py |
class Include(XMLSchemaComponent, MarkerInterface): | class Include(XMLSchemaComponent): | def getSchema(self): """if schema is not defined, first look for a Schema class instance in parent Schema. Else if not defined resolve schemaLocation and create a new Schema class instance, and keep a hard reference. """ if not self._schema: ns = self.attributes['namespace'] schema = self._parent().getImportSchemas().... | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py |
MarkerInterface,\ | def getSchema(self): """if schema is not defined, first look for a Schema class instance in parent Schema. Else if not defined resolve schemaLocation and create a new Schema class instance. """ if not self._schema: #schema = self._parent()._parent() schema = self._parent() #self._schema = schema.getIncludeSchemas(\ # ... | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): """ No list or union support """ self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) content = [] | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) constraints = [] | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.annotation = None self.setAttributes(node) for i in self.getContents(node): component = SplitQName(i.getTagName())[1] if component in self.__class__.contents['xsd']: if component == 'annotation' and not self.annotation: self.annotation = Annotation(self) self.annotation.fromDom(i) else: ra... | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) content = [] | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) content = [] | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) content = [] | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
self.annotation = Annotation() | self.annotation = Annotation(self) | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
self.attr_content.append(AttributeGroupDefinition(self)) | if contents[indx].hasattr('ref'): self.attr_content.append(AttributeGroupReference(self)) else: self.attr_content.append(AttributeGroupDefinition(self)) | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py |
class Extension(_DerivationBase, MarkerInterface, ExtensionMarker): | class Extension(_DerivationBase, ExtensionMarker): | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) for child in contents: component = SplitQName(child.getTagName())[1] if component == 'annotation': self.annotation = Annotation(self) self.annotation.fromDom(child) continue break else: return if component == 'restriction': self.content... | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) self.content = [] self.attr_content = [] | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | |
print "XMLSchema(%s) ADD IMPORT SCHEMA: %s" \ %(self.targetNamespace, schema.targetNamespace) | def addImportSchema(self, schema): """for resolving import statements in Schema instance schema -- schema instance _imported_schemas """ print "XMLSchema(%s) ADD IMPORT SCHEMA: %s" \ %(self.targetNamespace, schema.targetNamespace) if not isinstance(schema, XMLSchema): raise TypeError, 'expecting a Schema instance' if ... | 22c8e615d0f712bb5c846c74d9185193b57e9c0f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/22c8e615d0f712bb5c846c74d9185193b57e9c0f/XMLSchema.py | |
warnings.warn(\ '<import namespace="%s" schemaLocation=?>, %s'\ %(import_ns, 'failed to load schema instance') ) | def load(self, node, location=None): self.__node = node | 22c8e615d0f712bb5c846c74d9185193b57e9c0f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/22c8e615d0f712bb5c846c74d9185193b57e9c0f/XMLSchema.py | |
""" Global elements are always qualified. | """Global elements are always qualified. | def isQualified(self): """ | 22c8e615d0f712bb5c846c74d9185193b57e9c0f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/22c8e615d0f712bb5c846c74d9185193b57e9c0f/XMLSchema.py |
def getAttribute(self, attribute): """return attribute. If attribute is type and it's None, and no simple or complex content, return the default type "xsd:anyType" """ value = XMLSchemaComponent.getAttribute(self, attribute) if attribute != 'type' or value is not None: return value if self.content is not None: return... | def isQualified(self): """ | 22c8e615d0f712bb5c846c74d9185193b57e9c0f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/22c8e615d0f712bb5c846c74d9185193b57e9c0f/XMLSchema.py | |
""" If attribute is None, "type" is assumed, return the corresponding | """If attribute is None, "type" is assumed, return the corresponding | def getTypeDefinition(self, attribute=None): """ | 22c8e615d0f712bb5c846c74d9185193b57e9c0f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/22c8e615d0f712bb5c846c74d9185193b57e9c0f/XMLSchema.py |
print 'called ', msg | def failureException(exc, msg): print 'called ', msg if msg.str.startswith('Connection timed out'): print msg sys.stdout.flush() return False else: return True """ else: raise """ | 608981166ed291a66eb2d83047d0af67342a8871 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/608981166ed291a66eb2d83047d0af67342a8871/utils.py | |
""" else: raise """ | def failureException(exc, msg): print 'called ', msg if msg.str.startswith('Connection timed out'): print msg sys.stdout.flush() return False else: return True """ else: raise """ | 608981166ed291a66eb2d83047d0af67342a8871 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/608981166ed291a66eb2d83047d0af67342a8871/utils.py | |
'%s%s = {}'%(ID3, self.attribute_typecode), | '%sif getattr(self, "attribute_typecode_dict", None) is None: %s = {}' %( ID3, self.attribute_typecode), | def _setContent(self): # TODO: Add derivation logic to constructors. if type(self.sKlass) in (types.ClassType, type): definition = [ '%sclass %s(%s, TypeDefinition):' \ % (ID1, self.getClassName(), self.sKlass), '%s# ComplexType/SimpleContent derivation of built-in type' %ID2, '%s%s' % (ID2, self.schemaTag()), '%s%s' %... | eb271c5f638fec1e5f16969448e4f6b18349e2ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/eb271c5f638fec1e5f16969448e4f6b18349e2ee/containers.py |
'%sif not hasattr(self, %s): self.%s = {}'%( ID3, self.attribute_typecode, self.attribute_typecode), | '%sif getattr(self, "attribute_typecode_dict", None) is None: %s = {}' %( ID3, self.attribute_typecode), | def _setContent(self): # TODO: Add derivation logic to constructors. if type(self.sKlass) in (types.ClassType, type): definition = [ '%sclass %s(%s, TypeDefinition):' \ % (ID1, self.getClassName(), self.sKlass), '%s# ComplexType/SimpleContent derivation of built-in type' %ID2, '%s%s' % (ID2, self.schemaTag()), '%s%s' %... | eb271c5f638fec1e5f16969448e4f6b18349e2ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/eb271c5f638fec1e5f16969448e4f6b18349e2ee/containers.py |
1e30000, 'b': 0.0}) | TC._make_inf(), 'b': 0.0}) | def checkt1(self): for key,val in self.badTests: print "\n", "." * 60, key self.failUnlessRaises(ParseException, ParsedSoap, val) for key,val in self.goodTests: print "\n", "." * 60, key ps = ParsedSoap(val) | 40595d763d093b9953fa367987de0272c5fa27ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/40595d763d093b9953fa367987de0272c5fa27ff/test_t1.py |
if hasattr(node, 'documentElement'): | if hasattr(self.__node, 'documentElement'): | def loadDocument(self, file): self.__node = DOM.loadDocument(file) if hasattr(node, 'documentElement'): self.__node = node.documentElement | 8564c5f8d6920fdaaa551fa78649d3219f5865c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/8564c5f8d6920fdaaa551fa78649d3219f5865c3/XMLSchema.py |
if hasattr(node, 'documentElement'): self.__node = node.documentElement | if hasattr(self.__node, 'documentElement'): self.__node = self.__node.documentElement | def loadFromURL(self, url): self.__node = DOM.loadFromURL(url) if hasattr(node, 'documentElement'): self.__node = node.documentElement | 8564c5f8d6920fdaaa551fa78649d3219f5865c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/8564c5f8d6920fdaaa551fa78649d3219f5865c3/XMLSchema.py |
tc.klass = 'self.__class__.%s%s' % (element_class_name(tc.name)) | tc.klass = 'self.__class__.%s' % (element_class_name(tc.name)) | def _setTypecodeList(self): """generates ofwhat content, minOccurs/maxOccurs facet generation. Dependency instance attribute: mgContent -- expected to be either a complex definition with model group content, a model group, or model group content. TODO: should only support the first two. localTypes -- produce local cla... | fd9145129675a6ec2a44634a89adb7a834127c29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/fd9145129675a6ec2a44634a89adb7a834127c29/containers.py |
def setUp(self, tp, empty=False): '''Problematic, loose all model group information. <all>, <choice>, <sequence> .. | fd9145129675a6ec2a44634a89adb7a834127c29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/fd9145129675a6ec2a44634a89adb7a834127c29/containers.py | ||
definition = [ '%sclass %s(ZSI.TCcompound.ComplexType, TypeDefinition):' % (ID1, self.getClassName()), '%s%s' % (ID2, self.schemaTag()), '%s%s' % (ID2, self.typeTag()), '%s%s' % (ID2, self.pnameConstructor()), '%s%s' % (ID3, self.nsuriLogic()), '%sTClist = [%s]' % (ID3, self.getTypecodeList()), ] | try: definition = [ '%sclass %s(ZSI.TCcompound.ComplexType, TypeDefinition):' % (ID1, self.getClassName()), '%s%s' % (ID2, self.schemaTag()), '%s%s' % (ID2, self.typeTag()), '%s%s' % (ID2, self.pnameConstructor()), '%s%s' % (ID3, self.nsuriLogic()), '%sTClist = [%s]' % (ID3, self.getTypecodeList()), ] except Exception... | def _setContent(self): definition = [ '%sclass %s(ZSI.TCcompound.ComplexType, TypeDefinition):' % (ID1, self.getClassName()), '%s%s' % (ID2, self.schemaTag()), '%s%s' % (ID2, self.typeTag()), '%s%s' % (ID2, self.pnameConstructor()), #'%s' % self.getElements(), '%s%s' % (ID3, self.nsuriLogic()), '%sTClist = [%s]' % (I... | fd9145129675a6ec2a44634a89adb7a834127c29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/fd9145129675a6ec2a44634a89adb7a834127c29/containers.py |
ws = ZSIWsdlAdapter( ws ) | ws = ZSIWsdlAdapter(ws) | def fromWsdl(self, ws): | 625fe7d84a5449dd257a695e5fecb2467bccf05f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/625fe7d84a5449dd257a695e5fecb2467bccf05f/wsdl2dispatch.py |
o += '\n%s a.getType().getName()) | if a.getType(): o += '\n%s a.getType().getName()) | o = '\n%sdef %s(self, ps):' % (ID1, self.getMethodName(op.getName())) | 625fe7d84a5449dd257a695e5fecb2467bccf05f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/625fe7d84a5449dd257a695e5fecb2467bccf05f/wsdl2dispatch.py |
o += "\n%s | if a.getType(): o += "\n%s a.getType().getName()) | o = '\n%sdef %s(self, %s):' % (ID1, op.getName(), iargs) | 625fe7d84a5449dd257a695e5fecb2467bccf05f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/625fe7d84a5449dd257a695e5fecb2467bccf05f/wsdl2dispatch.py |
o += "\n%s a.getName(), a.getType().getName()) | if a.getType(): o += "\n%s a.getType().getName()) | o = '\n%sdef %s(self, %s):' % (ID1, op.getName(), iargs) | 625fe7d84a5449dd257a695e5fecb2467bccf05f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/625fe7d84a5449dd257a695e5fecb2467bccf05f/wsdl2dispatch.py |
component = SplitQName(contents[indx].getTagName())[1] if component == 'annotation': self.annotation = Annotation(self) self.annotation.fromDom(contents[indx]) indx += 1 | if num: | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | cb449fc0180b4b19d99c50f3984e5fe5b9e8f9d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/cb449fc0180b4b19d99c50f3984e5fe5b9e8f9d3/XMLSchema.py |
if component == 'annotation': self.annotation = Annotation(self) self.annotation.fromDom(contents[indx]) indx += 1 component = SplitQName(contents[indx].getTagName())[1] | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | cb449fc0180b4b19d99c50f3984e5fe5b9e8f9d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/cb449fc0180b4b19d99c50f3984e5fe5b9e8f9d3/XMLSchema.py | |
return "<Fault %s: %s>" % (self.faultcode, self.faultstring) | if self.detail: return "<Fault %s: %s: %s>" % (self.faultcode, self.faultstring, self.detail) else: return "<Fault %s: %s>" % (self.faultcode, self.faultstring) | def __repr__(self): return "<Fault %s: %s>" % (self.faultcode, self.faultstring) | 09f854f9a4ae0928fd313f5d59a64d4315cc7e01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/09f854f9a4ae0928fd313f5d59a64d4315cc7e01/SOAP.py |
if code == 500 and headers.get("content-type","text/xml") != "text/xml": | if code == 500 and not startswith(content_type, "text/xml"): | def call(self, addr, data, soapaction = '', encoding = None, http_proxy = None, config = Config): | 09f854f9a4ae0928fd313f5d59a64d4315cc7e01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/09f854f9a4ae0928fd313f5d59a64d4315cc7e01/SOAP.py |
if t[0:3] == 'xsd': | if t[0:4] == 'xsd:': | def getArrayType(self): | 8227914a0b814f10739947c04b58f532b498395e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/8227914a0b814f10739947c04b58f532b498395e/wsdlInterface.py |
t = ns + sample._type | t = ns + str(sample._type) | def dump_list(self, obj, tag, typed = 1, ns_map = {}): if Config.debug: print "In dump_list.", "obj=", obj tag = tag or self.gentag() tag = toXMLname(tag) # convert from SOAP 1.2 XML name encoding | debc21c8553d79fe54df587093391551e5247ca6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/debc21c8553d79fe54df587093391551e5247ca6/SOAPBuilder.py |
if level > 10: | if level > 12: | def recurseTypeList(self, allTypeDict, typeList, level, alreadyListed): """Recurse through a dictionary of type lists until reach Python types. """ if level > 10: return strList = [] for item in typeList: if item[0].startswith('_'): indent = ID2 + IDSP2*level strList.append('%s%s: %s' % (indent, item[0], item[1])) if i... | e39e649de95720f5b2a57834a216983014a906f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e39e649de95720f5b2a57834a216983014a906f7/wsdl2python.py |
alreadyListed.append(item[1]) | def recurseTypeList(self, allTypeDict, typeList, level, alreadyListed): """Recurse through a dictionary of type lists until reach Python types. """ if level > 10: return strList = [] for item in typeList: if item[0].startswith('_'): indent = ID2 + IDSP2*level strList.append('%s%s: %s' % (indent, item[0], item[1])) if i... | e39e649de95720f5b2a57834a216983014a906f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e39e649de95720f5b2a57834a216983014a906f7/wsdl2python.py | |
if kw.has_key('typed'): | if pname is None and kw.has_key('typed'): | def __init__(self, pyclass, ofwhat, pname=None, inorder=0, inline=0, | 5cfa4a268804a551af63439fcd6622bdc23e26ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5cfa4a268804a551af63439fcd6622bdc23e26ee/TCcompound.py |
minOccurs = int(element.getAttribute('minOccurs')) maxOccurs = int(element.getAttribute('maxOccurs')) | def _getElement(self, element, literal=False, local=False, namespaceURI=None): """Returns a typecode instance representing the passed in element. element -- XMLSchema.ElementDeclaration instance literal -- literal encoding? local -- is locally defined? namespaceURI -- namespace """ if not element.isElement(): raise Typ... | 49e3260f7a03f19a37ba59aec9058ecfe15f127e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/49e3260f7a03f19a37ba59aec9058ecfe15f127e/ServiceProxy.py | |
return typeClass(elementName, repeatable=maxOccurs>1, optional=not minOccurs) | typeObj = typeClass(elementName) | def _getElement(self, element, literal=False, local=False, namespaceURI=None): """Returns a typecode instance representing the passed in element. element -- XMLSchema.ElementDeclaration instance literal -- literal encoding? local -- is locally defined? namespaceURI -- namespace """ if not element.isElement(): raise Typ... | 49e3260f7a03f19a37ba59aec9058ecfe15f127e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/49e3260f7a03f19a37ba59aec9058ecfe15f127e/ServiceProxy.py |
return self._getType(tp, elementName, literal, local, namespaceURI) | if not typeObj: typeObj = self._getType(tp, elementName, literal, local, namespaceURI) minOccurs = int(element.getAttribute('minOccurs')) typeObj.optional = not minOccurs maxOccurs = element.getAttribute('maxOccurs') if maxOccurs == 'unbounded': typeObj.repeatable = True return typeObj | def _getElement(self, element, literal=False, local=False, namespaceURI=None): """Returns a typecode instance representing the passed in element. element -- XMLSchema.ElementDeclaration instance literal -- literal encoding? local -- is locally defined? namespaceURI -- namespace """ if not element.isElement(): raise Typ... | 49e3260f7a03f19a37ba59aec9058ecfe15f127e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/49e3260f7a03f19a37ba59aec9058ecfe15f127e/ServiceProxy.py |
print h | def process_headers(self, headers, ps): | 60c8c1f901ab73bf62f4dc70c94a8e234f4a4b82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/60c8c1f901ab73bf62f4dc70c94a8e234f4a4b82/server.py | |
print sys.argv[0] + ': Usage error.' | print >>sys.stderr, sys.argv[0] + ': Usage error.' | def handle_error(self, req, client_address): | 60c8c1f901ab73bf62f4dc70c94a8e234f4a4b82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/60c8c1f901ab73bf62f4dc70c94a8e234f4a4b82/server.py |
pyobj = self.pyclass() | pyobj = self.pyclass(self.aname) | def parse(self, elt, ps): #if elt.localName != self.pname: # elt = elt.getElementsByTagName(self.pname)[0] self.checkname(elt, ps) if self.type and \ self.checktype(elt, ps) not in [ self.type, (None,None) ]: raise EvaluateException('Struct has wrong type', ps.Backtrace(elt)) href = _find_href(elt) if href: if _chil... | 965616719bf39fe625f3f272fe5d634a45a3ad6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/965616719bf39fe625f3f272fe5d634a45a3ad6a/TCcompound.py |
if node._attrs.has_key(name): return 1 for item in node._attrsNS.keys(): if item[1] == name: return 1 return 0 return node._attrsNS.has_key((nsuri, name)) | if node.hasAttribute(name): return True return False return node.hasAttributeNS(nsuri, name) | def hasAttr(self, node, name, nsuri=None): """Return true if element has attribute with the given name and optional nsuri. If nsuri is not specified, returns true if an attribute exists with the given name with any namespace.""" if nsuri is None: if node._attrs.has_key(name): return 1 for item in node._attrsNS.keys(): ... | 6b88ff72148b053e6c01eb2b51c3b7e22e41fca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/6b88ff72148b053e6c01eb2b51c3b7e22e41fca3/Utility.py |
raise WsdlGeneratorError,\ 'suspect circular import of %s - not suported' % ns | pass | def write_dependent_schema(self, schema, fd): """Write schema instance contents w/respect to dependency requirements. First write any schema that is imported directly into current schema, then check current schema's xmlns and see if any of these represent currently held schema instances. | 7de92181a76b4eccc9848f94628d4fa4b0e7d896 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/7de92181a76b4eccc9848f94628d4fa4b0e7d896/wsdl2python.py |
continue | raise WsdlGeneratorError, 'no soap address specified for port %s - not supported' % p.getName() | def fromWsdl(self, service, typeDict=None): """service -- wsdl.Service instance """ | 7de92181a76b4eccc9848f94628d4fa4b0e7d896 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/7de92181a76b4eccc9848f94628d4fa4b0e7d896/wsdl2python.py |
self.basector.set('\n\n%s%s.__init__(self,pname=name, **kw)' % (ID3,tpc)) | self.basector.set('\n\n%s%s.__init__(self,pname=name, aname="_%%s" %% name, **kw)' % (ID3,tpc)) | self.initdef.set('\n\n%sdef __init__(self, name=None, ns=None, **kw):' \ % ID2) | 7de92181a76b4eccc9848f94628d4fa4b0e7d896 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/7de92181a76b4eccc9848f94628d4fa4b0e7d896/wsdl2python.py |
raise WSDLError( 'The parts argument must be a sequence.' ) | parts = parts.split() | def __init__(self, use, namespace=None, encodingStyle=None, parts=None): if not use in ('literal', 'encoded'): raise WSDLError( 'Invalid use attribute value: %s' % use ) self.encodingStyle = encodingStyle self.namespace = namespace if type(parts) in (type(''), type(u'')): raise WSDLError( 'The parts argument must be a ... | 13482b15c8d890cd37540d54246da190bcbd19e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/13482b15c8d890cd37540d54246da190bcbd19e6/WSDLTools.py |
self.nspname, self.pname = None, pname | self.nspname, self.pname = pname | def __init__(self, pname=None, oname=None, aname=None, optional=0, | 8400afd01223960fde203801d7f0f52c4023d262 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/8400afd01223960fde203801d7f0f52c4023d262/TC.py |
tp.loadSchema(schema) | try: tp.loadSchema(schema) except SchemaError: warnings.warn(\ '<import namespace="%s" schemaLocation=?>, %s'\ %(import_ns, 'failed to load schema instance') ) del slocd[import_ns] continue | def load(self, node, location=None): self.__node = node | ca01a174686406aadd5fe8f6620811446b6629dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/ca01a174686406aadd5fe8f6620811446b6629dd/XMLSchema.py |
def load(self, node, location=None): self.__node = node | ca01a174686406aadd5fe8f6620811446b6629dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/ca01a174686406aadd5fe8f6620811446b6629dd/XMLSchema.py | ||
def loadFromURL(self, url): | def loadFromURL(self, url, schema=None): | def loadFromURL(self, url): """Return an XMLSchema instance loaded from the given url. url -- URL to dereference """ reader = self.__readerClass() if self.__base_url: url = basejoin(self.__base_url,url) | 59ac3144ce9d78daac8dc16de8804297d5cb5b38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/59ac3144ce9d78daac8dc16de8804297d5cb5b38/XMLSchema.py |
schema = XMLSchema() | schema = schema or XMLSchema() | def loadFromURL(self, url): """Return an XMLSchema instance loaded from the given url. url -- URL to dereference """ reader = self.__readerClass() if self.__base_url: url = basejoin(self.__base_url,url) | 59ac3144ce9d78daac8dc16de8804297d5cb5b38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/59ac3144ce9d78daac8dc16de8804297d5cb5b38/XMLSchema.py |
def load(self, node, location=None): self.__node = node | 59ac3144ce9d78daac8dc16de8804297d5cb5b38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/59ac3144ce9d78daac8dc16de8804297d5cb5b38/XMLSchema.py | ||
print "Warning: Not keeping schema component." | warnings.warn("Not keeping schema component.") | def load(self, node, location=None): self.__node = node | 59ac3144ce9d78daac8dc16de8804297d5cb5b38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/59ac3144ce9d78daac8dc16de8804297d5cb5b38/XMLSchema.py |
import_ns = tp.getAttribute('namespace') or \ self.__class__.empty_namespace if not self.getImportSchemas().has_key(import_ns) and \ tp.getAttribute('schemaLocation'): self.addImportSchema(tp.getSchema()) | import_ns = tp.getAttribute('namespace') or\ self.__class__.empty_namespace schema = slocd.get(import_ns) if schema is None: schema = XMLSchema() slocd[import_ns] = schema tp.loadSchema(schema) else: tp._schema = schema if self.getImportSchemas().has_key(import_ns): warnings.warn(\ 'Detected multiple imports of the na... | def load(self, node, location=None): self.__node = node | 59ac3144ce9d78daac8dc16de8804297d5cb5b38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/59ac3144ce9d78daac8dc16de8804297d5cb5b38/XMLSchema.py |
pass | warnings.warn('redefine is ignored') | def load(self, node, location=None): self.__node = node | 59ac3144ce9d78daac8dc16de8804297d5cb5b38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/59ac3144ce9d78daac8dc16de8804297d5cb5b38/XMLSchema.py |
pass | warnings.warn('annotation is ignored') | def load(self, node, location=None): self.__node = node | 59ac3144ce9d78daac8dc16de8804297d5cb5b38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/59ac3144ce9d78daac8dc16de8804297d5cb5b38/XMLSchema.py |
def load(self, node, location=None): self.__node = node | 59ac3144ce9d78daac8dc16de8804297d5cb5b38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/59ac3144ce9d78daac8dc16de8804297d5cb5b38/XMLSchema.py | ||
def _is_derived_type(v, what): typecode = getattr(v, 'typecode', None) if typecode is not None and isinstance(typecode, what.__class__): return True return False def _get_what(v): typecode = getattr(v,'typecode', None) if isinstance(typecode, TypeCode): | def _get_type_or_substitute(typecode, pyobj, sw, elt): '''return typecode or substitute type (must be derived type). For serialization only. ''' sub = getattr(pyobj,'typecode', typecode) if sub is typecode: | def _is_derived_type(v, what): typecode = getattr(v, 'typecode', None) if typecode is not None and isinstance(typecode, what.__class__): return True return False | 39bf0a192f73c51fdb88cfed8d16277e03d3debf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/39bf0a192f73c51fdb88cfed8d16277e03d3debf/TCcompound.py |
raise EvaluateException, 'instance is not self-describing' | if isinstance(sub, ElementDeclaration): raise TypeError(\ 'failed to serialize (%s, %s) illegal sub GED (%s,%s): %s' % (typecode.nspname, typecode.pname, sub.nspname, sub.pname, sw.Backtrace(elt),)) if not isinstance(sub, typecode.__class__): raise TypeError(\ 'failed to serialize substitute %s for %s, not derivatio... | def _get_what(v): typecode = getattr(v,'typecode', None) if isinstance(typecode, TypeCode): return typecode raise EvaluateException, 'instance is not self-describing' | 39bf0a192f73c51fdb88cfed8d16277e03d3debf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/39bf0a192f73c51fdb88cfed8d16277e03d3debf/TCcompound.py |
if _is_derived_type(v, whatTC) and v.typecode is not what: what = _get_what(v) if isinstance(what, ElementDeclaration): raise TypeError('At %s: failed to serialize (%s, %s) substitute type is a GED (%s,%s)' % (sw.Backtrace(elt), whatTC.nspname, whatTC.pname, what.nspname, what.pname,)) if debug: self.logger.debug('use... | def cb(self, elt, sw, pyobj, name=None, **kw): debug = self.logger.debugOn() if debug: self.logger.debug("cb: %s" %str(self.ofwhat)) if pyobj is None: if self.nillable is True: elem = elt.createAppendElement(self.nspname, self.pname) self.serialize_as_nil(elem) return raise EvaluateException, 'element(%s,%s) is not ni... | 39bf0a192f73c51fdb88cfed8d16277e03d3debf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/39bf0a192f73c51fdb88cfed8d16277e03d3debf/TCcompound.py | |
raise EvaluateException('occurances(%d) less than minOccurs(%d) for <%s>' %( occurs, whatTC.minOccurs, what.pname), sw.Backtrace(elt)) | raise EvaluateException(\ 'occurances(%d) less than minOccurs(%d) for <%s>' % (occurs, whatTC.minOccurs, what.pname), sw.Backtrace(elt)) | def cb(self, elt, sw, pyobj, name=None, **kw): debug = self.logger.debugOn() if debug: self.logger.debug("cb: %s" %str(self.ofwhat)) if pyobj is None: if self.nillable is True: elem = elt.createAppendElement(self.nspname, self.pname) self.serialize_as_nil(elem) return raise EvaluateException, 'element(%s,%s) is not ni... | 39bf0a192f73c51fdb88cfed8d16277e03d3debf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/39bf0a192f73c51fdb88cfed8d16277e03d3debf/TCcompound.py |
return re.sub('[-./:]', '_', tmp) | return re.sub('[-./:]', '_', s) | def textProtect(s): """process any strings we cant have illegal chracters in""" # Seems like maketrans/translate would be worthwhile here. return re.sub('[-./:]', '_', tmp) | 39da20d30f8670a481f8c7f941b896a2d2c85cbd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/39da20d30f8670a481f8c7f941b896a2d2c85cbd/wsdl2python.py |
self.name = tp.getName() + '_Def' | def fromType(self, myType): """myType -- Type representation """ | 39da20d30f8670a481f8c7f941b896a2d2c85cbd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/39da20d30f8670a481f8c7f941b896a2d2c85cbd/wsdl2python.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.