rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
xsd = 'xsd' wsdl = 'wsdl' soap = 'soap' soapenc = 'soapenc' mime = 'mime' http = 'http' | 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 | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py | |
tns = self.attributes[XMLSchemaComponent.xsd].get(targetNamespace) | tns = self.attributes.get(targetNamespace) | def getTargetNamespace(self): """return targetNamespace """ parent = self targetNamespace = 'targetNamespace' tns = self.attributes[XMLSchemaComponent.xsd].get(targetNamespace) while not tns: parent = parent._parent() print parent print parent.attributes[XMLSchemaComponent.xsd] tns = parent.attributes[XMLSchemaComponen... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
print parent print parent.attributes[XMLSchemaComponent.xsd] tns = parent.attributes[XMLSchemaComponent.xsd].get(targetNamespace) | tns = parent.attributes.get(targetNamespace) | def getTargetNamespace(self): """return targetNamespace """ parent = self targetNamespace = 'targetNamespace' tns = self.attributes[XMLSchemaComponent.xsd].get(targetNamespace) while not tns: parent = parent._parent() print parent print parent.attributes[XMLSchemaComponent.xsd] tns = parent.attributes[XMLSchemaComponen... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
tdc = self.attributes[XMLSchemaComponent.xsd].get(attribute) | tdc = self.attributes.get(attribute) | def getQNameAttribute(self, collection, attribute): """returns object instance representing QName --> (namespace,name), or if does not exist return None. attribute -- an information item attribute, with a QName value. collection -- collection in parent Schema instance to search. """ obj = None tdc = self.attributes[XML... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
"""retrieve contents empty string returns 'xmlns' | """deference prefix or by default xmlns, returns namespace. | def getXMLNS(self, prefix=None): """retrieve contents empty string returns 'xmlns' """ parent = self ns = self.attributes[XMLSchemaComponent.xmlns].get(prefix) while not ns: parent = parent._parent() ns = parent.attributes[XMLSchemaComponent.xmlns].get(prefix or XMLSchemaComponent.xmlns_key) return ns | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
ns = self.attributes[XMLSchemaComponent.xmlns].get(prefix) | ns = self.attributes[XMLSchemaComponent.xmlns].get(prefix or\ XMLSchemaComponent.xmlns_key) | def getXMLNS(self, prefix=None): """retrieve contents empty string returns 'xmlns' """ parent = self ns = self.attributes[XMLSchemaComponent.xmlns].get(prefix) while not ns: parent = parent._parent() ns = parent.attributes[XMLSchemaComponent.xmlns].get(prefix or XMLSchemaComponent.xmlns_key) return ns | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
ns = parent.attributes[XMLSchemaComponent.xmlns].get(prefix or XMLSchemaComponent.xmlns_key) | ns = parent.attributes[XMLSchemaComponent.xmlns].get(prefix or\ XMLSchemaComponent.xmlns_key) | def getXMLNS(self, prefix=None): """retrieve contents empty string returns 'xmlns' """ parent = self ns = self.attributes[XMLSchemaComponent.xmlns].get(prefix) while not ns: parent = parent._parent() ns = parent.attributes[XMLSchemaComponent.xmlns].get(prefix or XMLSchemaComponent.xmlns_key) return ns | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
return self.attributes[XMLSchemaComponent.xsd].get(attribute) | return self.attributes.get(attribute) | def getAttribute(self, attribute): """return requested attribute or None """ return self.attributes[XMLSchemaComponent.xsd].get(attribute) | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
attribute dictionary is prefix keyed by xml xmlns xsd wsdl soap all other keys are namespace values. """ self.attributes = {XMLSchemaComponent.xsd:{},\ XMLSchemaComponent.xmlns:{}} | structure of attributes dictionary ['xmlns'][xmlns_key] -- xmlns namespace ['xmlns'][prefix] -- declared namespace prefix [namespace][prefix] -- attributes declared in a namespace [attribute] -- attributes w/o prefix, default namespaces do not directly apply to attributes, ie Name can't collide with QName. """ self.... | def setAttributes(self, node): """Sets up attribute dictionary, checks for required attributes and sets default attribute values. attr is for default attribute values determined at runtime. | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
if ns == XMLNS or prefix == XMLSchemaComponent.xml: if not self.attributes.has_key(XMLSchemaComponent.xml): self.attributes[XMLSchemaComponent.xml] = {} self.attributes[XMLSchemaComponent.xml][k] = v elif ns in SCHEMA.XSD_LIST: self.attributes[XMLSchemaComponent.xsd][value] = v elif ns == WSDL.BASE: if not self.attribu... | if not ns: raise if not ns or not self.attributes.has_key(ns): self.attributes[ns] = {} | def setAttributes(self, node): """Sets up attribute dictionary, checks for required attributes and sets default attribute values. attr is for default attribute values determined at runtime. | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
self.attributes[XMLSchemaComponent.xsd][value] = v | self.attributes[value] = v | def setAttributes(self, node): """Sets up attribute dictionary, checks for required attributes and sets default attribute values. attr is for default attribute values determined at runtime. | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
if self.attributes[XMLSchemaComponent.xsd].has_key(k): prefix, value = SplitQName(self.attributes[XMLSchemaComponent.xsd].get(k)) self.attributes[XMLSchemaComponent.xsd][k] = \ | if self.attributes.has_key(k): prefix, value = SplitQName(self.attributes.get(k)) self.attributes[k] = \ | def setAttributes(self, node): """Sets up attribute dictionary, checks for required attributes and sets default attribute values. attr is for default attribute values determined at runtime. | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
if self.attributes[XMLSchemaComponent.xsd].has_key('memberTypes'): qnames = self.attributes[XMLSchemaComponent.xsd]['memberTypes'] | for k in ['memberTypes']: if self.attributes.has_key(k): qnames = self.attributes[k] self.attributes[k] = [] for qname in qnames.split(): prefix, value = SplitQName(qname) self.attributes['memberTypes'].append(\ TypeDescriptionComponent(\ (self.getXMLNS(prefix), value))) | def setAttributes(self, node): """Sets up attribute dictionary, checks for required attributes and sets default attribute values. attr is for default attribute values determined at runtime. | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
return node.getContentList(*self.__class__.contents[XMLSchemaComponent.xsd]) | return node.getContentList(*self.__class__.contents['xsd']) | def getContents(self, node): """retrieve xsd contents """ return node.getContentList(*self.__class__.contents[XMLSchemaComponent.xsd]) | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
if v and not self.attributes[XMLSchemaComponent.xsd].has_key(k): | if v and not self.attributes.has_key(k): | def __setAttributeDefaults(self): """Looks for default values for unset attributes. If class variable representing attribute is None, then it must be defined as an instance variable. """ for k,v in self.__class__.attributes.items(): if v and not self.attributes[XMLSchemaComponent.xsd].has_key(k): if isinstance(v, type... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
self.attributes[XMLSchemaComponent.xsd][k] = v(self) | self.attributes[k] = v(self) | def __setAttributeDefaults(self): """Looks for default values for unset attributes. If class variable representing attribute is None, then it must be defined as an instance variable. """ for k,v in self.__class__.attributes.items(): if v and not self.attributes[XMLSchemaComponent.xsd].has_key(k): if isinstance(v, type... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
self.attributes[XMLSchemaComponent.xsd][k] = v | self.attributes[k] = v | def __setAttributeDefaults(self): """Looks for default values for unset attributes. If class variable representing attribute is None, then it must be defined as an instance variable. """ for k,v in self.__class__.attributes.items(): if v and not self.attributes[XMLSchemaComponent.xsd].has_key(k): if isinstance(v, type... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
if not self.attributes[XMLSchemaComponent.xsd].has_key(a): | if not self.attributes.has_key(a): | def __checkAttributes(self): """Checks that required attributes have been defined, attributes w/default cannot be required. Checks all defined attributes are legal. """ for a in self.__class__.required: if not self.attributes[XMLSchemaComponent.xsd].has_key(a): raise SchemaError,\ 'class instance %s, missing required... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
for a in self.attributes[XMLSchemaComponent.xsd].keys(): if a not in self.__class__.attributes.keys(): | for a in self.attributes.keys(): if (a != XMLSchemaComponent.xmlns) and\ a not in self.__class__.attributes.keys(): | def __checkAttributes(self): """Checks that required attributes have been defined, attributes w/default cannot be required. Checks all defined attributes are legal. """ for a in self.__class__.required: if not self.attributes[XMLSchemaComponent.xsd].has_key(a): raise SchemaError,\ 'class instance %s, missing required... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
f = lambda k: k.attributes[XMLSchemaComponent.xsd]['name'] ns = lambda k: k.attributes[XMLSchemaComponent.xsd]['namespace'] | f = lambda k: k.attributes['name'] ns = lambda k: k.attributes['namespace'] | def __init__(self, parent=None): """parent -- instance variables: targetNamespace -- schema's declared targetNamespace, or empty string. _imported_schemas -- namespace keyed dict of schema dependencies, if a schema is provided instance will not resolve import statement. _included_schemas -- schemaLocation keyed dict of... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
return self.attributes[XMLSchemaComponent.xsd]['elementFormDefault'] | return self.attributes.get('elementFormDefault') | def getElementFormDefault(self): """return elementFormDefault attribute """ return self.attributes[XMLSchemaComponent.xsd]['elementFormDefault'] | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
return self.attributes[XMLSchemaComponent.xsd]['attributeFormDefault'] | return self.attributes.get('attributeFormDefault') | def getAttributeFormDefault(self): """return attributeFormDefault attribute """ return self.attributes[XMLSchemaComponent.xsd]['attributeFormDefault'] | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
return self.attributes[XMLSchemaComponent.xsd].get('blockDefault') | return self.attributes.get('blockDefault') | def getBlockDefault(self): """return blockDefault attribute """ return self.attributes[XMLSchemaComponent.xsd].get('blockDefault') | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
return self.attributes[XMLSchemaComponent.xsd].get('finalDefault') | return self.attributes.get('finalDefault') | def getFinalDefault(self): """return finalDefault attribute """ return self.attributes[XMLSchemaComponent.xsd].get('finalDefault') | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
if self.attributes[XMLSchemaComponent.xsd]['namespace'] == self._parent().attributes[XMLSchemaComponent.xsd]['targetNamespace']: | if self.attributes['namespace'] == self._parent().attributes['targetNamespace']: | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
schema = self._parent().getImportSchemas().get(self.attributes[XMLSchemaComponent.xsd]['namespace']) | ns = self.attributes['namespace'] schema = self._parent().getImportSchemas().get(ns) | 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: schema = self._parent().getImportSchemas().get(self.attributes[XMLSchemaCompo... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
schema = self._parent()._parent().getImportSchemas().get(self.attributes[XMLSchemaComponent.xsd]['namespace']) | schema = self._parent()._parent().getImportSchemas().get(ns) | 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: schema = self._parent().getImportSchemas().get(self.attributes[XMLSchemaCompo... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
if not self.attributes[XMLSchemaComponent.xsd].has_key('schemaLocation'): raise SchemaError, 'namespace(%s) is unknown'\ %self.attributes[XMLSchemaComponent.xsd]['namespace'] | if not self.attributes.has_key('schemaLocation'): raise SchemaError, 'namespace(%s) is unknown' %ns | 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: schema = self._parent().getImportSchemas().get(self.attributes[XMLSchemaCompo... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
self.attributes[XMLSchemaComponent.xsd]['schemaLocation']) | self.attributes['schemaLocation']) | 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: schema = self._parent().getImportSchemas().get(self.attributes[XMLSchemaCompo... | 36f34bdb62c4299586877f31abafd4a91e255843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/36f34bdb62c4299586877f31abafd4a91e255843/XMLSchema.py |
obj = None | def getSchemaItem(self, collection, namespace, name): """returns object instance representing namespace, name, or if does not exist return None. namespace -- namespace item defined in. name -- name of item. collection -- collection in parent Schema instance to search. """ obj = None parent = GetSchema(self) if parent.t... | bda15a18edfb1c5a4a9e8f9656e6efbc957c1874 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/bda15a18edfb1c5a4a9e8f9656e6efbc957c1874/XMLSchema.py | |
raise KeyError, "targetNamespace(%s) collection(%s) has no item(%s)"\ | raise KeyError, 'targetNamespace(%s) collection(%s) has no item(%s)'\ | def getSchemaItem(self, collection, namespace, name): """returns object instance representing namespace, name, or if does not exist return None. namespace -- namespace item defined in. name -- name of item. collection -- collection in parent Schema instance to search. """ obj = None parent = GetSchema(self) if parent.t... | bda15a18edfb1c5a4a9e8f9656e6efbc957c1874 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/bda15a18edfb1c5a4a9e8f9656e6efbc957c1874/XMLSchema.py |
elif parent.imports.has_key(namespace): schema = parent.imports[namespace].getSchema() if schema is None: raise SchemaError, 'no schema instance for imported namespace (%s).'\ %(namespace) try: obj = getattr(schema, collection)[name] except KeyError, ex: raise KeyError, "targetNamespace(%s) collection(%s) has no item(%... | return obj if not parent.imports.has_key(namespace): return None schema = parent.imports[namespace] if not isinstance(schema, XMLSchema): schema = schema.getSchema() if schema is not None: parent.imports[namespace] = schema if schema is None: raise SchemaError, 'no schema instance for imported namespace (%s).'\ %(... | def getSchemaItem(self, collection, namespace, name): """returns object instance representing namespace, name, or if does not exist return None. namespace -- namespace item defined in. name -- name of item. collection -- collection in parent Schema instance to search. """ obj = None parent = GetSchema(self) if parent.t... | bda15a18edfb1c5a4a9e8f9656e6efbc957c1874 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/bda15a18edfb1c5a4a9e8f9656e6efbc957c1874/XMLSchema.py |
self.setAttributes(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.attributes['xmlns'][k] = v ... | def load(self, node): self.setAttributes(node) self.targetNamespace = self.getTargetNamespace() contents = self.getContents(node) | 060428ef1b15c31df0702ccbdf6d4f079c0b7bb9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/060428ef1b15c31df0702ccbdf6d4f079c0b7bb9/XMLSchema.py |
attributes -- a flattened list of all attributes, | attributes -- a flat list of all attributes, | def _setAttributes(self, attributes): '''parameters attributes -- a flattened list of all attributes, from this list all items in attribute_typecode_dict will be generated into attrComponents. returns a list of strings representing the attribute_typecode_dict. ''' atd = self.attribute_typecode atd_list = formatted_att... | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
self.logger.debug("_setUpElements: %s" %self._item.getItemTrace()) | def _setUpElements(self): """This method ONLY sets up the instance attributes. 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. """ | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py | |
flattened = [] | flat = [] | def _setUpElements(self): """This method ONLY sets up the instance attributes. 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. """ | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
flattend = content | flat = content | def _setUpElements(self): """This method ONLY sets up the instance attributes. 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. """ | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
flattened.append(c) | flat.append(c) | def _setUpElements(self): """This method ONLY sets up the instance attributes. 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. """ | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
for c in flattened: | for c in flat: | def _setUpElements(self): """This method ONLY sets up the instance attributes. 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. """ | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
flattened = [] | self.logger.debug("_setTypecodeList(%r): %s" % (self.mgContent, self._item.getItemTrace())) flat = [] | 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... | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
if not mg.isModelGroup(): | if not mg.isModelGroup(): | 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... | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
content = mg.content | self.logger.debug("ModelGroup(%r) contents(%r): %s" % (mg, mg.content, self._item.getItemTrace())) | 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... | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
flattend = content | flat = mg.content | 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... | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
flattened.append(c) | flat.append(c) | 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... | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
for c in flattened: | self.logger.debug("flat: %r" %flat) for c in flat: | 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... | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
self._element = element | self._item = element | def setUp(self, element): # Save for debugging self._element = element self.name = element.getAttribute('name') self.ns = element.getTargetNamespace() | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
args = ['Failure processing: %s' %self._element.getItemTrace()] | args = ['Failure processing: %s' %self._item.getItemTrace()] | def _setContent(self): '''GED defines element name, so also define typecode aname ''' try: element = [ '%sclass %s(ElementDeclaration):' % (ID1, self.getClassName()), '%s%s' % (ID2, self.literalTag()), '%s%s' % (ID2, self.schemaTag()), '%s%s' % (ID2, self.simpleConstructor()), '%skw["pname"] = ("%s","%s")' % (ID3, self... | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
self._tp = tp | self._item = tp | def setUp(self, tp, empty=False): '''Problematic, loose all model group information. <all>, <choice>, <sequence> .. | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
args = ["Failure processing %s" %self._tp.getItemTrace()] | args = ["Failure processing %s" %self._item.getItemTrace()] | def _setContent(self): 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' % self.getElements(), '%s%s' % (ID3, self.nsuriLogic()), '%sTClist = [%s]'... | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py |
if name not in self.methods.keys(): raise AttributeError, name | if not self.methods.has_key(name): raise AttributeError, name | def __getattr__(self, name): """Set up environment then let parent class handle call. | f1e74e8bfcc8cad8deed9160a44cb816e7874569 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/f1e74e8bfcc8cad8deed9160a44cb816e7874569/WSDL.py |
class ZSIException(Exceptoin): | class ZSIException(Exception): | def _backtrace(elt, dom): '''Return a "backtrace" from the given element to the DOM root, in XPath syntax. ''' s = '' while elt != dom: name, parent = elt.nodeName, elt.parentNode if parent is None: break matches = [ c for c in _child_elements(parent) if c.nodeName == name ] if len(matches) == 1: s = '/' + name + s els... | d05cedeff3ea4628c60932bed496f53809be113f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/d05cedeff3ea4628c60932bed496f53809be113f/__init__.py |
obj = str(obj) | obj = repr(obj) | def dump_float(self, obj, tag, typed = 1, ns_map = {}): if Config.debug: print "In dump_float." tag = tag or self.gentag() | 41b338614fc05b9bf699a162c7ed435e7cabf9d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/41b338614fc05b9bf699a162c7ed435e7cabf9d3/SOAPBuilder.py |
self.typecode += '\n%sZSI.TC.Struct.__init__(self, %s, [%s], pname=name, aname="%%s" %% name, oname=oname )' %( ID3, message.getName(), tcs ) | self.typecode += '\n%sZSI.TC.Struct.__init__(self, %s, [%s], pname=name, aname="%s" %% name, oname=oname )' %( ID3, message.getName(), tcs, self.aname_func("%s") ) | self.typecode += '\n%sdef __init__(self, name=None, ns=None):'\ %(ID1) | f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7/wsdl2python.py |
self.typecode += '\n%s%s.typecode = Struct(%s,[%s], pname=name, aname="%%s" %% name, oname="%%s xmlns=\\"%s\\"" %% name )'\ | self.typecode += '\n%s%s.typecode = Struct(%s,[%s], pname=name, aname="%s" %% name, oname="%%s xmlns=\\"%s\\"" %% name )'\ | self.typecode += '\n%sdef __init__(self, name=None, ns=None): pass' %(ID1) break | f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7/wsdl2python.py |
tcs,namespace) | tcs, self.aname_func("%s"), namespace) | self.typecode += '\n%sdef __init__(self, name=None, ns=None): pass' %(ID1) break | f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7/wsdl2python.py |
self.basector.set('\n%sZSI.TC.Any.__init__(self,pname=name,aname="%%s" %% name , optional=1,repeatable=1, **kw)' % ID3) | self.basector.set('\n%sZSI.TC.Any.__init__(self,pname=name,aname="%s" %% name , optional=1,repeatable=1, **kw)' % (ID3, self.aname_func("%s")) ) | self.initdef.set('\n%sdef __init__(self, name=None, ns=None, **kw):' % (ID2)) | f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7/wsdl2python.py |
self.basector.set('\n\n%s%s.__init__(self,pname=name, aname="%%s" %% name, **kw)' % (ID3,tpc)) | self.basector.set('\n\n%s%s.__init__(self,pname=name, aname="%s" %% name, **kw)' % (ID3,tpc,self.aname_func("%s"))) | self.initdef.set('\n\n%sdef __init__(self, name=None, ns=None, **kw):' \ % ID2) | f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7/wsdl2python.py |
"\n%s%s.__init__(self, '%s', %s%s(name=None,typed=0), pname=name, aname='%%s' %% name, oname='%%s xmlns:%s=\"%s\"' %% name, **kw)" %(ID3, tc, arrayType, nsp, atype, atypePrefix, atypeNS) | "\n%s%s.__init__(self, '%s', %s%s(name=None,typed=0), pname=name, aname='%s' %% name, oname='%%s xmlns:%s=\"%s\"' %% name, **kw)" %(ID3, tc, arrayType, nsp, atype, self.aname_func("%s"), atypePrefix, atypeNS) | self.initdef.set("\n%sdef __init__(self, name = None, ns = None, **kw):" % ID2) | f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7/wsdl2python.py |
self.dump(self.header, "Header", typed = typed) | header_ns = self.genns(ns_map, NS.ENV)[0] self.dump(self.header, "%sHeader" % header_ns, typed = typed) | def build(self): if Config.debug: print "In build." ns_map = {} | 4abc3d1ebf31e2e9c11ecafef092195ac58a80c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/4abc3d1ebf31e2e9c11ecafef092195ac58a80c6/SOAPBuilder.py |
os.kill(cls._process.pid, signal.SIGKILL) | os.kill(cls._process.pid, signal.SIGKILL) cls._process = None | def CleanUp(cls): if cls._process is None: return os.kill(cls._process.pid, signal.SIGKILL) | e8ea2f64c69bdba94c0e3ca2fec22fc536b53163 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e8ea2f64c69bdba94c0e3ca2fec22fc536b53163/ServiceTest.py |
def _complexTypeAllOrSequence(self, tp, mg): | 76b875e1641eca9cbcce29076469b08439a6bed0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/76b875e1641eca9cbcce29076469b08439a6bed0/wsdl2python.py | ||
if self._dec.attributes.has_key('name'): return self.mangle(self._dec.attributes['name']) else: return None | if hasattr( self._dec, 'attributes'): if self._dec.attributes.has_key('name'): return self.mangle(self._dec.attributes['name']) return None | def getName(self): """returns name """ if self._dec.attributes.has_key('name'): return self.mangle(self._dec.attributes['name']) else: return None | c1d67e766326dfaf38fb58f1ab6a983dfea28403 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/c1d67e766326dfaf38fb58f1ab6a983dfea28403/wsdlInterface.py |
meth(obj, tag, typed, ns_map) | def dump(self, obj, tag = None, typed = 1, ns_map = {}): if Config.debug: print "In dump.", "obj=", obj ns_map = ns_map.copy() self.depth += 1 | 4b58a2536f2a3e06b09eac5035c0b9d84fcebeb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/4b58a2536f2a3e06b09eac5035c0b9d84fcebeb4/SOAPBuilder.py | |
self.dump(obj.aslist(i), obj._keyord[i], 1, ns_map) | self.dump(obj._aslist(i), obj._keyord[i], 1, ns_map) | def dump_instance(self, obj, tag, typed = 1, ns_map = {}): if Config.debug: print "In dump_instance.", "obj=", obj, "tag=", tag if not tag: # If it has a name use it. if isinstance(obj, anyType) and obj._name: tag = obj._name else: tag = self.gentag() | 4b58a2536f2a3e06b09eac5035c0b9d84fcebeb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/4b58a2536f2a3e06b09eac5035c0b9d84fcebeb4/SOAPBuilder.py |
header_ns = self.genns(ns_map, NS.ENV)[0] self.dump(self.header, "%sHeader" % header_ns, typed = typed) | self.dump(self.header, "Header", typed = typed) | def build(self): if Config.debug: print "In build." ns_map = {} | f8597801be505fe0a727ab251ff69fc1454ffff2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/f8597801be505fe0a727ab251ff69fc1454ffff2/SOAPBuilder.py |
item[1] = item[1].replace('LOCAL_Def', '_Def') | if item[1]: item[1] = item[1].replace('LOCAL_Def', '_Def') | def docString(self, allTypeDict, messageName, isInput): """Generates a docstring giving the input and output message names, and their associated parameters and parameter sub-fields. """ docList = [] if isInput: docList.append('%s@param: request to %s' % (ID2, messageName)) else: docList.append('%s@return: response from... | e21dbf035f313cd06a508fb3d1f0e01f908f776f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e21dbf035f313cd06a508fb3d1f0e01f908f776f/wsdl2python.py |
if not self.attributes.has_key('schemaLocation'): | url = self.attributes.get('schemaLocation') if not url: | 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().... | 22b6e4fd93652fa2a0ec8cb759fbee8aa1f12a8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/22b6e4fd93652fa2a0ec8cb759fbee8aa1f12a8d/XMLSchema.py |
if (l > i and interfaces[i].providedBy(args[i])) or type(args[i]) is interfaces[-1]: | if (l > i and interfaces[i].providedBy(args[i])) or interfaces[-1].providedBy(args[i]): | def check_args(self, *args, **kw): for i in range(len(args)): if (l > i and interfaces[i].providedBy(args[i])) or type(args[i]) is interfaces[-1]: continue raise TypeError, 'got %s, expecting %s' %(args[i], types[i]) func(self, *args, **kw) | 69b68c36e369199e91b5a26596a3534dd3e7ad6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/69b68c36e369199e91b5a26596a3534dd3e7ad6e/WSresource.py |
raise TypeError, 'got %s, expecting %s' %(args[i], types[i]) | if l > i: raise TypeError, 'arg %s does not implement %s' %(args[i], interfaces[i]) raise TypeError, 'arg %s does not implement %s' %(args[i], interfaces[-1]) | def check_args(self, *args, **kw): for i in range(len(args)): if (l > i and interfaces[i].providedBy(args[i])) or type(args[i]) is interfaces[-1]: continue raise TypeError, 'got %s, expecting %s' %(args[i], types[i]) func(self, *args, **kw) | 69b68c36e369199e91b5a26596a3534dd3e7ad6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/69b68c36e369199e91b5a26596a3534dd3e7ad6e/WSresource.py |
if len(list) != 2: | if len(list) == 1: list = [None,list[0]] elif len(list) != 2: | def checktype(self, elt, ps): '''See if the type of the "elt" element is what we're looking for. Return the element's type. ''' type = _find_type(elt) if type is None or type is "": return (None,None) | 9682e3928175eeb7b1071874c05b33deb07f80d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/9682e3928175eeb7b1071874c05b33deb07f80d8/TC.py |
"%s : %s %s" % (nsmethod, info[0:2])), | "%s : %s %s %s" % (nsmethod, info[0], info[1], info[2])), | def do_POST(self): global _contexts status = 500 try: if self.server.config.dumpHeadersIn: s = 'Incoming HTTP headers' debugHeader(s) print self.raw_requestline.strip() print "\n".join(map (lambda x: x.strip(), self.headers.headers)) debugFooter(s) | 325a578c52396d044dd1213c896a9048019acc5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/325a578c52396d044dd1213c896a9048019acc5d/Server.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... | 4b94ba3c9102c8c229c57c1f17ccca2ebd884a00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/4b94ba3c9102c8c229c57c1f17ccca2ebd884a00/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... | 4b94ba3c9102c8c229c57c1f17ccca2ebd884a00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/4b94ba3c9102c8c229c57c1f17ccca2ebd884a00/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') typeObj.repeatable = (maxOccurs == 'unbounded') or (int(maxOccurs) > 1) 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... | 4b94ba3c9102c8c229c57c1f17ccca2ebd884a00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/4b94ba3c9102c8c229c57c1f17ccca2ebd884a00/ServiceProxy.py |
comma=content_length.find(',') if comma>0: content_length = content_length[:comma] | if content_length: comma=content_length.find(',') if comma>0: content_length = content_length[:comma] | def call(self, addr, data, namespace, soapaction = None, encoding = None, http_proxy = None, config = Config): | 19545b92671a4fd8921fdd75f99712d9cb17f87e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/19545b92671a4fd8921fdd75f99712d9cb17f87e/Client.py |
raise WsdlGeneratorError, 'no soap address specified for port %s - not supported' % p.getName() | continue else: hasSoapBinding = True | def fromWsdl(self, service, typeDict=None): """service -- wsdl.Service instance """ | fe8978e09cec6243218bb3d3e4db2a97dca3c38f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/fe8978e09cec6243218bb3d3e4db2a97dca3c38f/wsdl2python.py |
return re.sub('[-./:]', '_', s) | 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('[-./:]', '_', s) | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
%(tpc, part.getName(), | %(t, part.getName(), | def fromPart(self, part): """part -- wsdl.Part instance """ | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.body += tw.classdef self.body += tw.initdef | self.extractCode(tw) | def generate(self, sdict, alternateWriter): | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.body += tw.classdef self.body += tw.initdef | self.extractCode(tw) | def getClassDefs(self, class_list, class_dict): check_list = [] for indx in range(len(class_list)): if class_dict.has_key(class_list[indx]): for tw in class_dict[class_list[indx]]: self.body += tw.classdef self.body += tw.initdef check_list.append(tw.name) else: del class_dict[class_list[indx]] if check_list: self.getC... | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.body += tw.classdef self.body += tw.initdef | self.extractCode(tw) def extractCode(self, tw): self.body += tw.prepend.getvalue() self.body += tw.classdef.getvalue() self.body += tw.classvar.getvalue() self.body += tw.initdef.getvalue() self.body += tw.initcode.getvalue() self.body += tw.basector.getvalue() self.body += tw.postpend.getvalue() | def getClassDefs(self, class_list, class_dict): check_list = [] for indx in range(len(class_list)): if class_dict.has_key(class_list[indx]): for tw in class_dict[class_list[indx]]: self.body += tw.classdef self.body += tw.initdef check_list.append(tw.name) else: del class_dict[class_list[indx]] if check_list: self.getC... | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.initdef = None self.classdef = None | self.prepend = StringWriter() self.classdef = StringWriter() self.classvar = StringWriter() self.initdef = StringWriter() self.initcode = StringWriter() self.basector = StringWriter() self.postpend = StringWriter() | self.initdef = None | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.initdef = '\n%sdef __init__(self, name=None, ns=None, **kw):' % (ID2) | self.initdef.set('\n%sdef __init__(self, name=None, ns=None, **kw):' % (ID2)) | self.initdef = '\n%sdef __init__(self, name=None, ns=None, **kw):' % (ID2) | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.classdef = '\n\n%sclass %s(%s):' % (ID1, tp.getName() \ + '_Def', tpc) self.initdef += '\n%s%s.__init__(self,pname="%s",optional=1,repeatable=1)' % (ID3,tpc,tp.getName()) | self.classdef.set('\n\n%sclass %s(%s):' \ % (ID1, tp.getName() + '_Def', tpc)) self.basector.set('\n%s%s.__init__(self,pname="%s",optional=1,repeatable=1)' % (ID3,tpc,tp.getName())) | self.classdef = '\n\n%sclass %s(%s):' % (ID1, tp.getName() \ + '_Def', tpc) | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.classdef = '\n\n%sclass %s(ZSI.TC.Any):' % (ID1, tp.getName() + '_Def') self.initdef += '\n%s % ID3 self.initdef += '\n%sZSI.TC.Any.__init__(self,pname=name,aname="_%%s" %% name , optional=1,repeatable=1, **kw)' % ID3 | self.classdef.set('\n\n%sclass %s(ZSI.TC.Any):' \ % (ID1, tp.getName() + '_Def')) self.initcode.write('\n%s self.basector.set('\n%sZSI.TC.Any.__init__(self,pname=name,aname="_%%s" %% name , optional=1,repeatable=1, **kw)' % ID3) | self.classdef = '\n\n%sclass %s(ZSI.TC.Any):' % (ID1, tp.getName() + '_Def') | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.classdef = '\n\n%sclass %s(ZSI.TC.XML):' % (ID1, tp.getName()) self.initdef = '\n%s__init__(self,pname):' % (ID2) self.initdef += '\n%sZSI.TC.XML.__init__(self,pname,**kw)' % (ID3) | self.classdef.set('\n\n%sclass %s(ZSI.TC.XML):' \ % (ID1, tp.getName())) self.initdef.set('\n%s__init__(self,pname):' % (ID2)) self.basector.set('\n%sZSI.TC.XML.__init__(self,pname,**kw)' % ID3) | self.classdef = '\n\n%sclass %s(ZSI.TC.XML):' % (ID1, tp.getName()) | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.classdef = '\n\n%sclass %s:' % (ID1, tp.getName()) self.initdef = '\n%s self.initdef += '\n%s self.initdef += '\n%spass\n' % ID2 | self.classdef.set('\n\n%sclass %s:' % (ID1, tp.getName())) self.classvar.set('\n%s self.classvar.write('\n%s self.classvar.write('\n%spass\n' % ID2) | def _fromAttribute(self, tp): | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.classdef = '\n\n%sclass %s(Struct):' % (ID1, tp.getName()) self.initdef = '\n%sdef __init__(self, name=None, ns=None, **kw):' % (ID2) self.initdef += '\n%sStruct.__init__(self, self.__class__, [], pname="%s", aname="_%s", inline=1)'\ % (ID3,tp.getName(),tp.getName()) | self.classdef.set('\n\n%sclass %s(Struct):' \ % (ID1, tp.getName())) self.initdef.set('\n%sdef __init__(self, name=None, ns=None, **kw):' % (ID2)) self.basector.set('\n%sStruct.__init__(self, self.__class__, [], pname="%s", aname="_%s", inline=1)' % (ID3,tp.getName(),tp.getName())) | self.classdef = '\n\n%sclass %s(Struct):' % (ID1, tp.getName()) | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.classdef = '\n\n%sclass %s(%s):' % (ID1, tp.getName() \ + '_Dec', tpc) self.classdef += '\n%sliteral = "%s"' % ( ID2, tp.getName()) self.classdef += '\n%sschema = "%s"' % ( ID2, tp.getTargetNamespace()) self.initdef = '\n\n%sdef __init__(self, name=None, ns=None):' \ % ID2 self.initdef += '\n%sname = name or se... | self.classdef.set('\n\n%sclass %s(%s):' \ % (ID1, tp.getName() + '_Dec', tpc)) self.classvar.set('\n%sliteral = "%s"' % (ID2, tp.getName())) self.classvar.write('\n%sschema = "%s"' % \ (ID2,tp.getTargetNamespace())) self.initdef.set('\n\n%sdef __init__(self, name=None, ns=None):' \ % ID2) self.initcode.set('\n%sname... | self.classdef = '\n\n%sclass %s(%s):' % (ID1, tp.getName() \ + '_Dec', tpc) | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.classdef = '\n\n%sclass %s(%s.%s):' \ % (ID1, tp.getName() + '_Dec', self.nsh.getAlias(nsp), etp.getName() + '_Def') | self.classdef.set('\n\n%sclass %s(%s.%s):' \ % (ID1, tp.getName() + '_Dec', self.nsh.getAlias(nsp), etp.getName() + '_Def')) | self.classdef = '\n\n%sclass %s(%s.%s):' \ % (ID1, tp.getName() + '_Dec', self.nsh.getAlias(nsp), etp.getName() + '_Def') | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.classdef = '\n\n%sclass %s(%s):' % (ID1, tp.getName() \ + '_Dec', etp.getName() \ + '_Def') self.classdef += '\n%sliteral = "%s"' % ( ID2, tp.getName()) self.classdef += '\n%sschema = "%s"' % ( ID2, tp.getTargetNamespace()) self.initdef = '\n\n%sdef __init__(self, name=None, ns=None):' \ %(ID2) self.initdef += ... | self.classdef.set('\n\n%sclass %s(%s):' \ % (ID1, tp.getName() + '_Dec', etp.getName() + '_Def')) self.classvar.set('\n%sliteral = "%s"' % ( ID2, tp.getName())) self.classvar.write('\n%sschema = "%s"' \ % ( ID2,tp.getTargetNamespace())) self.initdef.set('\n\n%sdef __init__(self, name=None, ns=None):' %(ID2)) self.in... | self.classdef = '\n\n%sclass %s(%s.%s):' \ % (ID1, tp.getName() + '_Dec', self.nsh.getAlias(nsp), etp.getName() + '_Def') | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.initdef += '\n\n%s%s.%s.__init__(self)' \ %(ID3, self.nsh.getAlias(nsp), etp.getName() + '_Def') self.initdef += '\n%sself.typecode = %s.%s(name=name, ns=ns)' % (ID3, self.nsh.getAlias(nsp), etp.getName() + '_Def') | self.basector.set('\n\n%s%s.%s.__init__(self)' \ %(ID3, self.nsh.getAlias(nsp), etp.getName() + '_Def')) self.postpend.set('\n%sself.typecode = %s.%s(name=name, ns=ns)' % (ID3, self.nsh.getAlias(nsp), etp.getName() + '_Def')) | self.initdef += '\n\n%s%s.%s.__init__(self)' \ %(ID3, self.nsh.getAlias(nsp), etp.getName() + '_Def') | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.initdef += '\n\n%sclass %s(%s):' % (ID1, tp.getName() + '_Dec', tp.getName()\ + 'LOCAL_Def' ) self.initdef += '\n%sliteral = "%s"' % ( ID2, tp.getName()) self.initdef += '\n%sschema = "%s"' % ( ID2, tp.getTargetNamespace()) self.initdef += '\n\n%sdef __init__(self, name=None, ns=None):' \ %(ID2) self.initdef += '... | self.postpend.set('\n\n%sclass %s(%s):' % \ (ID1,tp.getName() + '_Dec', tp.getName() + 'LOCAL_Def' )) self.postpend.write('\n%sliteral = "%s"' % \ ( ID2, tp.getName())) self.postpend.write('\n%sschema = "%s"' % \ ( ID2, tp.getTargetNamespace())) self.postpend.write('\n\n%sdef __init__(self, name=None, ns=None):... | self.initdef += '\n\n%sclass %s(%s):' % (ID1, tp.getName() + '_Dec', tp.getName()\ + 'LOCAL_Def' ) | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.initdef += '\n\n%s%s.%s.__init__(self, name=name, ns=ns)'\ %(ID3, nsp, tp.getName() + 'LOCAL_Def') self.initdef += '\n%sself.typecode = %s.%s(name=name, ns=ns)' % (ID3, nsp, tp.getName() + 'LOCAL_Def' ) | self.postpend.write('\n\n%s%s.%s.__init__(self, name=name, ns=ns)' %(ID3, nsp, tp.getName() + 'LOCAL_Def')) self.postpend.write('\n%sself.typecode = %s.%s(name=name, ns=ns)' % (ID3, nsp, tp.getName() + 'LOCAL_Def' )) | self.initdef += '\n\n%s%s.%s.__init__(self, name=name, ns=ns)'\ %(ID3, nsp, tp.getName() + 'LOCAL_Def') | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.classdef = '\n\n%sclass %s:' %(ID1, tp.getName() + '_Def') self.initdef = '' | self.classdef.set('\n\n%sclass %s:' \ %(ID1, tp.getName() + '_Def')) | self.classdef = '\n\n%sclass %s:' %(ID1, tp.getName() + '_Def') | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.initdef += '\n%sattributes = [%s]' \ % (ID1, self._complexTypeHandleAttributes(tp)) | pass | self.initdef += '\n%sattributes = [%s]' \ % (ID1, self._complexTypeHandleAttributes(tp)) | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.initdef += "\n%sschema = '%s'" % (ID2, tp.getTargetNamespace()) self.initdef += "\n%stype = '%s'\n" % (ID2, tp.getName()) self.initdef += '\n%sdef __init__(self, name=None, ns=None, **kw):' % (ID2) | self.classvar.set("\n%sschema = '%s'" % (ID2, tp.getTargetNamespace())) self.classvar.write("\n%stype = '%s'\n" % (ID2, tp.getName())) self.initdef.set('\n%sdef __init__(self, name=None, ns=None, **kw):' % (ID2)) | self.initdef += "\n%sschema = '%s'" % (ID2, tp.getTargetNamespace()) | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.classdef = '\n\n%sclass %s(ZSI.TCcompound.Struct):'\ %(ID1, tp.getName() + '_Def') | self.classdef.set('\n\n%sclass %s(ZSI.TCcompound.Struct):'\ %(ID1, tp.getName() + '_Def')) | self.classdef = '\n\n%sclass %s(ZSI.TCcompound.Struct):'\ %(ID1, tp.getName() + '_Def') | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
self.initdef = '' | self.initdef = '' | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py | |
self.classdef = '\n\n%sclass %s(%s):' %(ID1, tp.getName() \ + '_Def', dt.getDerivation()\ + '_Def') self.initdef = '\n%s self.initdef += "\n%sschema = '%s'" % (ID2, tp.getTargetNamespace()) self.initdef += "\n%stype = '%s'" % (ID2,tp.getName()) self.initdef += '\n\n%sdef __init__(self, name=None, ns=None, **kw):' % ID... | self.classdef.set('\n\n%sclass %s(%s):' \ %(ID1, tp.getName() + '_Def', dt.getDerivation() + '_Def')) self.classvar.set('\n%s self.classvar.write("\n%sschema = '%s'" % \ (ID2, tp.getTargetNamespace())) self.classvar.write("\n%stype = '%s'" % (ID2,tp.getName())) self.initdef.set('\n\n%sdef __init__(self, name=None, ns=N... | self.classdef = '\n\n%sclass %s(%s):' %(ID1, tp.getName() \ + '_Def', dt.getDerivation()\ + '_Def') | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.