From a3537011bdd9af07e1207dc7989af4d48876bc8f Mon Sep 17 00:00:00 2001 From: Dave Kuhlman <dkuhlman@davekuhlman.org> Date: Mon, 27 Aug 2018 14:54:59 -0700 Subject: [PATCH] v. 2.29.24 Changed namespace_ to namespaceprefix_ for clarity --- README.rst | 13 ++ generateDS.html | 6 +- generateDS.py | 78 +++---- generateDS.txt | 2 +- generateds_gui_notes.html | 6 +- generateds_gui_notes.txt | 2 +- gui/generateds_gui.py | 2 +- librarytemplate_howto.html | 6 +- librarytemplate_howto.txt | 2 +- process_includes.py | 2 +- setup.py | 2 +- tests/OnePer/oneperType00_2One.py | 18 +- tests/OnePer/oneperType01_2One.py | 30 +-- tests/OnePer/oneperType02_2One.py | 30 +-- tests/OnePer/oneperType03_2One.py | 30 +-- tests/abstract_type1_sup.py | 66 +++--- tests/annotations1_sup.py | 46 ++-- tests/anonymous_type1_sup.py | 62 +++--- tests/anysimpletype1_sup.py | 30 +-- tests/anywildcard1_sup.py | 96 ++++----- tests/attr_groups1_sup.py | 14 +- tests/cdata1_sup.py | 30 +-- tests/cleanupname1_sup.py | 94 ++++---- tests/defaults_cases1_sup.py | 78 +++---- tests/defaults_cases_always1_sup.py | 46 ++-- tests/defaults_cases_always2_sup.py | 46 ++-- tests/defaults_coverage1_sup.py | 46 ++-- tests/extensions1_sup.py | 178 +++++++-------- tests/ipo1_sup.py | 114 +++++----- tests/ipo2_sup.py | 114 +++++----- tests/mapcleanname1_sup.py | 112 +++++----- tests/mixedcontent1_sup.py | 82 +++---- tests/mixedcontent2_sup.py | 82 +++---- tests/nested_def1_sup.py | 78 +++---- tests/out1_sup.py | 204 +++++++++--------- tests/people_procincl1_sup.py | 276 ++++++++++++------------ tests/prefix_classname1_sup.py | 204 +++++++++--------- tests/recursive_simpletype1_sup.py | 14 +- tests/reference_simpletype1_sup.py | 14 +- tests/rem_dup_elems1_sup.py | 30 +-- tests/simplecontent_restriction1_sup.py | 50 ++--- tests/simpletype_memberspecs1_sup.py | 28 +-- tests/simpletypes_other1_sup.py | 30 +-- tests/validate_simpletypes1_sup.py | 68 +++--- tests/validate_simpletypes2_sup.py | 68 +++--- tutorial/generateds_tutorial.html | 6 +- tutorial/generateds_tutorial.txt | 2 +- tutorial/generateds_tutorial.zip | Bin 48772 -> 48771 bytes 48 files changed, 1325 insertions(+), 1312 deletions(-) diff --git a/README.rst b/README.rst index e692f4d..011aaa9 100644 --- a/README.rst +++ b/README.rst @@ -141,6 +141,14 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Change history -------------- +Version 2.29.24 (08/27/2018) + +- Changed name of parameter in the export method from "namespace_" + to "namespaceprefix_" in an attempt to reduce confusion about its + use. It's value, if it has one, should be something like "abc:". + Thanks to Bernd Zimmermann for his advice and encouragement on + this. + Version 2.29.23 (08/16/2018) - Added new command line option "--create-mandatory-children". If a @@ -2264,3 +2272,8 @@ The following enhancements and fixes remain to be done: Dave Kuhlman dkuhlman@davekuhlman.org http://www.davekuhlman.org + +.. A few dummy targets to eliminate docutils processing errors: + +.. _namespace: +.. _namespaceprefix: diff --git a/generateDS.html b/generateDS.html index 6dda5e4..5d20287 100644 --- a/generateDS.html +++ b/generateDS.html @@ -220,7 +220,7 @@ They are used by updateversion.py. --> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> -<tr class="field"><th class="field-name">revision:</th><td class="field-body">2.29.23</td> +<tr class="field"><th class="field-name">revision:</th><td class="field-body">2.29.24</td> </tr> </tbody> </table> @@ -229,7 +229,7 @@ They are used by updateversion.py. --> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> -<tr class="field"><th class="field-name">date:</th><td class="field-body">August 16, 2018</td> +<tr class="field"><th class="field-name">date:</th><td class="field-body">August 27, 2018</td> </tr> </tbody> </table> @@ -3409,7 +3409,7 @@ following among others:</p> <div class="footer"> <hr class="footer" /> <a class="reference external" href="generateDS.txt">View document source</a>. -Generated on: 2018-08-16 22:29 UTC. +Generated on: 2018-08-27 21:50 UTC. Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source. </div> diff --git a/generateDS.py b/generateDS.py index 0f47548..02f8322 100755 --- a/generateDS.py +++ b/generateDS.py @@ -235,7 +235,7 @@ _log = logging.getLogger(__name__) # Do not modify the following VERSION comments. # Used by updateversion.py. ##VERSION## -VERSION = '2.29.23' +VERSION = '2.29.24' ##VERSION## BaseStrTypes = six.string_types @@ -2067,9 +2067,6 @@ def generateExportFn_1(wrt, child, name, namespace, fill): "input_name='%s')), eol_))\n" % \ (fill, child_ns, name, child_ns, name, mappedName, name, ) else: - namespace = 'namespace_' - if child.prefix and 'ref' in child.attrs: - namespace = "'%s:'" % child.prefix s1 = "%s outfile.write('<%s%s>%%s</%s%s>%%s' %% " \ "(self.gds_encode(self.gds_format_string(" \ "quote_xml(self.%s), " \ @@ -2153,27 +2150,27 @@ def generateExportFn_1(wrt, child, name, namespace, fill): # name_type_problem if False: # name == child.getType(): s1 = "%s self.%s.export(outfile, level, " \ - "namespace_, pretty_print=pretty_print)\n" % \ + "namespaceprefix_, pretty_print=pretty_print)\n" % \ (fill, mappedName) else: - namespace = 'namespace_' + namespaceprefix = 'namespaceprefix_' if child.prefix and 'ref' in child.attrs: - namespace += "='%s:'" % child.prefix + namespaceprefix += "='%s:'" % child.prefix s1 = "%s self.%s.export(outfile, level, %s, " \ "name_='%s', pretty_print=pretty_print)\n" % \ - (fill, mappedName, namespace, name) + (fill, mappedName, namespaceprefix, name) wrt(s1) # end generateExportFn_1 -def generateExportFn_2(wrt, child, name, namespace, fill): +def generateExportFn_2(wrt, child, name, namespaceprefix, fill): cleanName = cleanupName(name) mappedName = mapName(cleanName) child_type = child.getType() if child.prefix and 'ref' in child.attrs: child_ns = "%s:" % child.prefix else: - child_ns = namespace + child_ns = namespaceprefix # fix_simpletype wrt("%s for %s_ in self.%s:\n" % (fill, cleanName, mappedName, )) if child_type == DateTimeType: @@ -2275,27 +2272,27 @@ def generateExportFn_2(wrt, child, name, namespace, fill): else: # name_type_problem if False: # name == child.getType(): - s1 = "%s %s_.export(outfile, level, namespace_, " \ + s1 = "%s %s_.export(outfile, level, namespaceprefix_, " \ "pretty_print=pretty_print)\n" % (fill, cleanName) else: - namespace = 'namespace_' + namespaceprefix = 'namespaceprefix_' if child.prefix and 'ref' in child.attrs: - namespace += "='%s:'" % child.prefix + namespaceprefix += "='%s:'" % child.prefix s1 = "%s %s_.export(outfile, level, %s, " \ "name_='%s', pretty_print=pretty_print)\n" % \ - (fill, cleanName, namespace, name) + (fill, cleanName, namespaceprefix, name) wrt(s1) # end generateExportFn_2 -def generateExportFn_3(wrt, child, name, namespace, fill): +def generateExportFn_3(wrt, child, name, namespaceprefix, fill): cleanName = cleanupName(name) mappedName = mapName(cleanName) child_type = child.getType() if child.prefix and 'ref' in child.attrs: child_ns = "%s:" % child.prefix else: - child_ns = namespace + child_ns = namespaceprefix # fix_simpletype default = child.getDefault() if child_type == DateTimeType: @@ -2454,16 +2451,17 @@ def generateExportFn_3(wrt, child, name, namespace, fill): wrt("%s if self.%s is not None:\n" % (fill, mappedName)) # name_type_problem if False: # name == child.getType(): - s1 = "%s self.%s.export(" \ - "outfile, level, namespace_, pretty_print=pretty_print)\n" % \ - (fill, mappedName) + s1 = ("%s self.%s.export(" + "outfile, level, namespaceprefix_, " + "pretty_print=pretty_print)\n" % ( + fill, mappedName)) else: - namespace = 'namespace_' + namespaceprefix = 'namespaceprefix_' if child.prefix and 'ref' in child.attrs: - namespace += "='%s:'" % child.prefix + namespaceprefix += "='%s:'" % child.prefix s1 = "%s self.%s.export(outfile, level, %s, " \ "name_='%s', pretty_print=pretty_print)\n" % \ - (fill, mappedName, namespace, name) + (fill, mappedName, namespaceprefix, name) wrt(s1) # end generateExportFn_3 @@ -2776,7 +2774,7 @@ def generateExportChildren(wrt, element, hasChildren, namespace): wrt('%sif not fromsubclass_:\n' % (fill, )) wrt("%s for item_ in self.content_:\n" % (fill, )) wrt("%s item_.export(outfile, level, item_.name, " - "namespace_, pretty_print=pretty_print)\n" % (fill, )) + "namespaceprefix_, pretty_print=pretty_print)\n" % (fill, )) wrt('%sif pretty_print:\n' % (fill, )) wrt("%s eol_ = '\\n'\n" % (fill, )) wrt('%selse:\n' % (fill, )) @@ -2799,13 +2797,13 @@ def generateExportChildren(wrt, element, hasChildren, namespace): if abstract_child and child.getMaxOccurs() > 1: wrt("%sfor %s_ in self.%s:\n" % ( fill, name, name,)) - wrt("%s %s_.export(outfile, level, namespace_, " + wrt("%s %s_.export(outfile, level, namespaceprefix_, " "pretty_print=pretty_print)\n" % ( fill, name, )) elif abstract_child: wrt("%sif self.%s is not None:\n" % (fill, name, )) wrt("%s self.%s.export(outfile, level, " - "namespace_, " + "namespaceprefix_, " "pretty_print=pretty_print)\n" % ( fill, name, )) elif child.getMaxOccurs() > 1: @@ -2822,11 +2820,11 @@ def generateExportChildren(wrt, element, hasChildren, namespace): if any_type_child.getMaxOccurs() > 1: wrt(' for obj_ in self.anytypeobjs_:\n') wrt(" obj_.export(outfile, level, " - "namespace_, pretty_print=pretty_print)\n") + "namespaceprefix_, pretty_print=pretty_print)\n") else: wrt(' if self.anytypeobjs_ is not None:\n') wrt(" self.anytypeobjs_.export(outfile, " - "level, namespace_, pretty_print=pretty_print)\n") + "level, namespaceprefix_, pretty_print=pretty_print)\n") return hasChildren # end generateExportChildren @@ -2873,7 +2871,7 @@ def generateExportFn(wrt, prefix, element, namespace, nameSpacesDef): ns_def = 'xmlns:{}'.format(ns_prefix[0]) if ns_def not in nameSpacesDef: nameSpacesDef += ' {}="{}"'.format(ns_def, ns_prefix[1]) - wrt(" def export(self, outfile, level, namespace_='%s', " + wrt(" def export(self, outfile, level, namespaceprefix_='%s', " "name_='%s', namespacedef_='%s', pretty_print=True):\n" % (namespace, encodedname, nameSpacesDef)) wrt(" imported_ns_def_ = GenerateDSNamespaceDefs_.get" @@ -2888,11 +2886,11 @@ def generateExportFn(wrt, prefix, element, namespace, nameSpacesDef): wrt(" if self.original_tagname_ is not None:\n") wrt(" name_ = self.original_tagname_\n") wrt(' showIndent(outfile, level, pretty_print)\n') - wrt(" outfile.write('<%s%s%s' % (namespace_, name_, " + wrt(" outfile.write('<%s%s%s' % (namespaceprefix_, name_, " "namespacedef_ and ' ' + namespacedef_ or '', ))\n") wrt(" already_processed = set()\n") wrt(" self.exportAttributes(outfile, level, " - "already_processed, namespace_, name_='%s')\n" % + "already_processed, namespaceprefix_, name_='%s')\n" % (encodedname, )) # fix_abstract if base and base in ElementDict: @@ -2903,10 +2901,11 @@ def generateExportFn(wrt, prefix, element, namespace, nameSpacesDef): if childCount == 0 and element.isMixed(): wrt(" outfile.write('>')\n") wrt(" self.exportChildren(outfile, level + 1, " - "namespace_, name_, pretty_print=pretty_print)\n") + "namespaceprefix_, name_, pretty_print=pretty_print)\n") wrt(" outfile.write(self.convert_unicode(" "self.valueOf_))\n") - wrt(" outfile.write('</%s%s>%s' % (namespace_, name_, eol_))\n") + wrt(" outfile.write('</%s%s>%s' % (" + "namespaceprefix_, name_, eol_))\n") else: wrt(" if self.hasContent_():\n") # Added to keep value on the same line as the tag no children. @@ -2918,17 +2917,17 @@ def generateExportFn(wrt, prefix, element, namespace, nameSpacesDef): else: wrt(" outfile.write('>%s' % (eol_, ))\n") wrt(" self.exportChildren(outfile, level + 1, " - "namespace_='%s', name_='%s', pretty_print=pretty_print)\n" % + "namespaceprefix_='%s', name_='%s', pretty_print=pretty_print)\n" % (namespace, encodedname)) # Put a condition on the indent to require children. if childCount != 0: wrt(' showIndent(outfile, level, pretty_print)\n') - wrt(" outfile.write('</%s%s>%s' % (namespace_, " + wrt(" outfile.write('</%s%s>%s' % (namespaceprefix_, " "name_, eol_))\n") wrt(" else:\n") wrt(" outfile.write('/>%s' % (eol_, ))\n") wrt(" def exportAttributes(self, outfile, level, " - "already_processed, namespace_='%s', name_='%s'):\n" % + "already_processed, namespaceprefix_='%s', name_='%s'):\n" % (namespace, encodedname, )) hasAttributes = 0 if element.getAnyAttribute(): @@ -2969,12 +2968,13 @@ def generateExportFn(wrt, prefix, element, namespace, nameSpacesDef): hasAttributes += 1 elName = element.getCleanName() wrt(" super(%s%s, self).exportAttributes(" - "outfile, level, already_processed, namespace_, name_='%s')\n" % - (prefix, elName, encodedname, )) + "outfile, level, already_processed, " + "namespaceprefix_, name_='%s')\n" % ( + prefix, elName, encodedname, )) hasAttributes += generateExportAttributes(wrt, element, hasAttributes) if hasAttributes == 0: wrt(" pass\n") - wrt(" def exportChildren(self, outfile, level, namespace_='%s', " + wrt(" def exportChildren(self, outfile, level, namespaceprefix_='%s', " "name_='%s', fromsubclass_=False, pretty_print=True):\n" % (namespace, encodedname, )) hasChildren = 0 @@ -2985,7 +2985,7 @@ def generateExportFn(wrt, prefix, element, namespace, nameSpacesDef): hasChildren += 1 elName = element.getCleanName() wrt(" super(%s%s, self).exportChildren(outfile, level, " - "namespace_, name_, True, pretty_print=pretty_print)\n" % + "namespaceprefix_, name_, True, pretty_print=pretty_print)\n" % (prefix, elName, )) hasChildren += generateExportChildren(wrt, element, hasChildren, namespace) if childCount == 0: # and not element.isMixed(): diff --git a/generateDS.txt b/generateDS.txt index df257a6..ecc0ff3 100644 --- a/generateDS.txt +++ b/generateDS.txt @@ -12,7 +12,7 @@ generateDS -- Generate Data Structures from XML Schema .. version -:revision: 2.29.23 +:revision: 2.29.24 .. version diff --git a/generateds_gui_notes.html b/generateds_gui_notes.html index 4749cd3..f7b4cb2 100644 --- a/generateds_gui_notes.html +++ b/generateds_gui_notes.html @@ -220,7 +220,7 @@ They are used by updateversion.py. --> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> -<tr class="field"><th class="field-name">revision:</th><td class="field-body">2.29.23</td> +<tr class="field"><th class="field-name">revision:</th><td class="field-body">2.29.24</td> </tr> </tbody> </table> @@ -229,7 +229,7 @@ They are used by updateversion.py. --> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> -<tr class="field"><th class="field-name">date:</th><td class="field-body">August 16, 2018</td> +<tr class="field"><th class="field-name">date:</th><td class="field-body">August 27, 2018</td> </tr> </tbody> </table> @@ -401,7 +401,7 @@ $ mv generateds_gui.mo locale/ru/LC_MESSAGES/ <div class="footer"> <hr class="footer" /> <a class="reference external" href="generateds_gui_notes.txt">View document source</a>. -Generated on: 2018-08-16 22:29 UTC. +Generated on: 2018-08-27 21:50 UTC. Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source. </div> diff --git a/generateds_gui_notes.txt b/generateds_gui_notes.txt index 2bed923..3aee747 100644 --- a/generateds_gui_notes.txt +++ b/generateds_gui_notes.txt @@ -12,7 +12,7 @@ GenerateDS GUI Notes .. version -:revision: 2.29.23 +:revision: 2.29.24 .. version diff --git a/gui/generateds_gui.py b/gui/generateds_gui.py index c0c1d36..b838fab 100644 --- a/gui/generateds_gui.py +++ b/gui/generateds_gui.py @@ -41,7 +41,7 @@ from libgenerateDS.gui import generateds_gui_session # Do not modify the following VERSION comments. # Used by updateversion.py. ##VERSION## -VERSION = '2.29.23' +VERSION = '2.29.24' ##VERSION## diff --git a/librarytemplate_howto.html b/librarytemplate_howto.html index 7049ae9..6425741 100644 --- a/librarytemplate_howto.html +++ b/librarytemplate_howto.html @@ -217,7 +217,7 @@ dkuhlman (at) davekuhlman (dot) org <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> -<tr class="field"><th class="field-name">revision:</th><td class="field-body">2.29.23</td> +<tr class="field"><th class="field-name">revision:</th><td class="field-body">2.29.24</td> </tr> </tbody> </table> @@ -226,7 +226,7 @@ dkuhlman (at) davekuhlman (dot) org <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> -<tr class="field"><th class="field-name">date:</th><td class="field-body">August 16, 2018</td> +<tr class="field"><th class="field-name">date:</th><td class="field-body">August 27, 2018</td> </tr> </tbody> </table> @@ -380,7 +380,7 @@ this command for your needs. For example, you may need to use <div class="footer"> <hr class="footer" /> <a class="reference external" href="librarytemplate_howto.txt">View document source</a>. -Generated on: 2018-08-16 22:29 UTC. +Generated on: 2018-08-27 21:50 UTC. Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source. </div> diff --git a/librarytemplate_howto.txt b/librarytemplate_howto.txt index 971c8fd..0edddd2 100644 --- a/librarytemplate_howto.txt +++ b/librarytemplate_howto.txt @@ -8,7 +8,7 @@ How to package a generateDS.py generated library .. version -:revision: 2.29.23 +:revision: 2.29.24 .. version diff --git a/process_includes.py b/process_includes.py index f083e63..23df4f2 100755 --- a/process_includes.py +++ b/process_includes.py @@ -40,7 +40,7 @@ except ImportError: # Do not modify the following VERSION comments. # Used by updateversion.py. ##VERSION## -VERSION = '2.29.23' +VERSION = '2.29.24' ##VERSION## CatalogDict = {} diff --git a/setup.py b/setup.py index 834c8f3..167bf5d 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( # Do not modify the following VERSION comments. # Used by updateversion.py. ##VERSION## - version="2.29.23", + version="2.29.24", ##VERSION## author="Dave Kuhlman", author_email="dkuhlman@davekuhlman.org", diff --git a/tests/OnePer/oneperType00_2One.py b/tests/OnePer/oneperType00_2One.py index 4f2b00c..302c340 100644 --- a/tests/OnePer/oneperType00_2One.py +++ b/tests/OnePer/oneperType00_2One.py @@ -763,7 +763,7 @@ class oneperType00_1(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='oneperType00_1', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='oneperType00_1', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('oneperType00_1') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -774,27 +774,27 @@ class oneperType00_1(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='oneperType00_1') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='oneperType00_1') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='oneperType00_1', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='oneperType00_1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='oneperType00_1'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='oneperType00_1'): pass - def exportChildren(self, outfile, level, namespace_='', name_='oneperType00_1', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='oneperType00_1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.inner01 is not None: - self.inner01.export(outfile, level, namespace_, name_='inner01', pretty_print=pretty_print) + self.inner01.export(outfile, level, namespaceprefix_, name_='inner01', pretty_print=pretty_print) if self.inner02 is not None: - self.inner02.export(outfile, level, namespace_, name_='inner02', pretty_print=pretty_print) + self.inner02.export(outfile, level, namespaceprefix_, name_='inner02', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) diff --git a/tests/OnePer/oneperType01_2One.py b/tests/OnePer/oneperType01_2One.py index 88d1791..eb0889b 100644 --- a/tests/OnePer/oneperType01_2One.py +++ b/tests/OnePer/oneperType01_2One.py @@ -763,7 +763,7 @@ class oneperType01_1(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='oneperType01_1', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='oneperType01_1', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('oneperType01_1') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -774,19 +774,19 @@ class oneperType01_1(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='oneperType01_1') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='oneperType01_1') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='oneperType01_1', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='oneperType01_1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='oneperType01_1'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='oneperType01_1'): pass - def exportChildren(self, outfile, level, namespace_='', name_='oneperType01_1', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='oneperType01_1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -795,7 +795,7 @@ class oneperType01_1(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<username>%s</username>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.username), input_name='username')), eol_)) if self.inner01 is not None: - self.inner01.export(outfile, level, namespace_, name_='inner01', pretty_print=pretty_print) + self.inner01.export(outfile, level, namespaceprefix_, name_='inner01', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -847,7 +847,7 @@ class oneperType01_2(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='oneperType01_2', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='oneperType01_2', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('oneperType01_2') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -858,19 +858,19 @@ class oneperType01_2(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='oneperType01_2') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='oneperType01_2') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='oneperType01_2', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='oneperType01_2', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='oneperType01_2'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='oneperType01_2'): pass - def exportChildren(self, outfile, level, namespace_='', name_='oneperType01_2', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='oneperType01_2', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/OnePer/oneperType02_2One.py b/tests/OnePer/oneperType02_2One.py index 7eb4aef..0533a39 100644 --- a/tests/OnePer/oneperType02_2One.py +++ b/tests/OnePer/oneperType02_2One.py @@ -763,7 +763,7 @@ class oneperType02_1(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='oneperType02_1', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='oneperType02_1', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('oneperType02_1') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -774,19 +774,19 @@ class oneperType02_1(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='oneperType02_1') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='oneperType02_1') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='oneperType02_1', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='oneperType02_1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='oneperType02_1'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='oneperType02_1'): pass - def exportChildren(self, outfile, level, namespace_='', name_='oneperType02_1', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='oneperType02_1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -795,7 +795,7 @@ class oneperType02_1(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<clientname>%s</clientname>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.clientname), input_name='clientname')), eol_)) if self.inner01 is not None: - self.inner01.export(outfile, level, namespace_, name_='inner01', pretty_print=pretty_print) + self.inner01.export(outfile, level, namespaceprefix_, name_='inner01', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -847,7 +847,7 @@ class oneperType02_2(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='oneperType02_2', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='oneperType02_2', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('oneperType02_2') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -858,19 +858,19 @@ class oneperType02_2(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='oneperType02_2') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='oneperType02_2') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='oneperType02_2', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='oneperType02_2', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='oneperType02_2'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='oneperType02_2'): pass - def exportChildren(self, outfile, level, namespace_='', name_='oneperType02_2', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='oneperType02_2', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/OnePer/oneperType03_2One.py b/tests/OnePer/oneperType03_2One.py index dbf59e3..b7a7776 100644 --- a/tests/OnePer/oneperType03_2One.py +++ b/tests/OnePer/oneperType03_2One.py @@ -763,7 +763,7 @@ class oneperType03_1(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='oneperType03_1', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='oneperType03_1', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('oneperType03_1') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -774,19 +774,19 @@ class oneperType03_1(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='oneperType03_1') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='oneperType03_1') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='oneperType03_1', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='oneperType03_1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='oneperType03_1'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='oneperType03_1'): pass - def exportChildren(self, outfile, level, namespace_='', name_='oneperType03_1', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='oneperType03_1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -795,7 +795,7 @@ class oneperType03_1(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<helpername>%s</helpername>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.helpername), input_name='helpername')), eol_)) if self.inner01 is not None: - self.inner01.export(outfile, level, namespace_, name_='inner01', pretty_print=pretty_print) + self.inner01.export(outfile, level, namespaceprefix_, name_='inner01', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -847,7 +847,7 @@ class oneperType03_2(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='oneperType03_2', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='oneperType03_2', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('oneperType03_2') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -858,19 +858,19 @@ class oneperType03_2(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='oneperType03_2') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='oneperType03_2') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='oneperType03_2', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='oneperType03_2', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='oneperType03_2'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='oneperType03_2'): pass - def exportChildren(self, outfile, level, namespace_='', name_='oneperType03_2', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='oneperType03_2', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/abstract_type1_sup.py b/tests/abstract_type1_sup.py index b6b7b47..47335e1 100644 --- a/tests/abstract_type1_sup.py +++ b/tests/abstract_type1_sup.py @@ -763,7 +763,7 @@ class carrierType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='target:', name_='carrierType', namespacedef_='xmlns:target="http://cars.example.com/schema"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='target:', name_='carrierType', namespacedef_='xmlns:target="http://cars.example.com/schema"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('carrierType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -774,25 +774,25 @@ class carrierType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='carrierType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='carrierType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='target:', name_='carrierType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='target:', name_='carrierType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='target:', name_='carrierType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='target:', name_='carrierType'): pass - def exportChildren(self, outfile, level, namespace_='target:', name_='carrierType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='target:', name_='carrierType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for fleet_ in self.fleet: - fleet_.export(outfile, level, namespace_, pretty_print=pretty_print) + fleet_.export(outfile, level, namespaceprefix_, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -853,7 +853,7 @@ class Vehicle(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='target:', name_='Vehicle', namespacedef_='xmlns:target="http://cars.example.com/schema"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='target:', name_='Vehicle', namespacedef_='xmlns:target="http://cars.example.com/schema"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('Vehicle') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -864,22 +864,22 @@ class Vehicle(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='Vehicle') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Vehicle') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='target:', name_='Vehicle', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='target:', name_='Vehicle', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='target:', name_='Vehicle'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='target:', name_='Vehicle'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespace_='target:', name_='Vehicle', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='target:', name_='Vehicle', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -924,7 +924,7 @@ class Car(Vehicle): return True else: return False - def export(self, outfile, level, namespace_='target:', name_='Car', namespacedef_='xmlns:target="http://cars.example.com/schema"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='target:', name_='Car', namespacedef_='xmlns:target="http://cars.example.com/schema"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('Car') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -935,19 +935,19 @@ class Car(Vehicle): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='Car') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Car') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='target:', name_='Car', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='target:', name_='Car', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='target:', name_='Car'): - super(Car, self).exportAttributes(outfile, level, already_processed, namespace_, name_='Car') - def exportChildren(self, outfile, level, namespace_='target:', name_='Car', fromsubclass_=False, pretty_print=True): - super(Car, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='target:', name_='Car'): + super(Car, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Car') + def exportChildren(self, outfile, level, namespaceprefix_='target:', name_='Car', fromsubclass_=False, pretty_print=True): + super(Car, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) pass def build(self, node): already_processed = set() @@ -990,7 +990,7 @@ class Plane(Vehicle): return True else: return False - def export(self, outfile, level, namespace_='target:', name_='Plane', namespacedef_='xmlns:target="http://cars.example.com/schema"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='target:', name_='Plane', namespacedef_='xmlns:target="http://cars.example.com/schema"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('Plane') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1001,19 +1001,19 @@ class Plane(Vehicle): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='Plane') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Plane') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='target:', name_='Plane', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='target:', name_='Plane', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='target:', name_='Plane'): - super(Plane, self).exportAttributes(outfile, level, already_processed, namespace_, name_='Plane') - def exportChildren(self, outfile, level, namespace_='target:', name_='Plane', fromsubclass_=False, pretty_print=True): - super(Plane, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='target:', name_='Plane'): + super(Plane, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Plane') + def exportChildren(self, outfile, level, namespaceprefix_='target:', name_='Plane', fromsubclass_=False, pretty_print=True): + super(Plane, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) pass def build(self, node): already_processed = set() diff --git a/tests/annotations1_sup.py b/tests/annotations1_sup.py index 0d81841..658ca2f 100644 --- a/tests/annotations1_sup.py +++ b/tests/annotations1_sup.py @@ -765,7 +765,7 @@ class document1Type(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='document1Type', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='document1Type', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('document1Type') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -776,19 +776,19 @@ class document1Type(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='document1Type') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='document1Type') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='document1Type', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='document1Type', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='document1Type'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='document1Type'): pass - def exportChildren(self, outfile, level, namespace_='', name_='document1Type', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='document1Type', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -797,7 +797,7 @@ class document1Type(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<comments>%s</comments>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.comments), input_name='comments')), eol_)) if self.otherdoc is not None: - self.otherdoc.export(outfile, level, namespace_, name_='otherdoc', pretty_print=pretty_print) + self.otherdoc.export(outfile, level, namespaceprefix_, name_='otherdoc', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -862,7 +862,7 @@ class document2Type(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='document2Type', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='document2Type', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('document2Type') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -873,19 +873,19 @@ class document2Type(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='document2Type') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='document2Type') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='document2Type', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='document2Type', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='document2Type'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='document2Type'): pass - def exportChildren(self, outfile, level, namespace_='', name_='document2Type', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='document2Type', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -897,7 +897,7 @@ class document2Type(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<rating>%s</rating>%s' % (self.gds_format_integer(self.rating, input_name='rating'), eol_)) if self.anotherdoc is not None: - self.anotherdoc.export(outfile, level, namespace_, name_='anotherdoc', pretty_print=pretty_print) + self.anotherdoc.export(outfile, level, namespaceprefix_, name_='anotherdoc', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -963,7 +963,7 @@ class document3Type(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='document3Type', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='document3Type', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('document3Type') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -974,19 +974,19 @@ class document3Type(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='document3Type') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='document3Type') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='document3Type', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='document3Type', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='document3Type'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='document3Type'): pass - def exportChildren(self, outfile, level, namespace_='', name_='document3Type', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='document3Type', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/anonymous_type1_sup.py b/tests/anonymous_type1_sup.py index 79335bf..cbd741a 100644 --- a/tests/anonymous_type1_sup.py +++ b/tests/anonymous_type1_sup.py @@ -767,7 +767,7 @@ class FooList(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='FooList', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='FooList', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('FooList') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -778,29 +778,29 @@ class FooList(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='FooList') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FooList') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='FooList', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='FooList', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='FooList'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FooList'): pass - def exportChildren(self, outfile, level, namespace_='', name_='FooList', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='FooList', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.Foo is not None: - self.Foo.export(outfile, level, namespace_, name_='Foo', pretty_print=pretty_print) + self.Foo.export(outfile, level, namespaceprefix_, name_='Foo', pretty_print=pretty_print) if self.Bar is not None: - self.Bar.export(outfile, level, namespace_, name_='Bar', pretty_print=pretty_print) + self.Bar.export(outfile, level, namespaceprefix_, name_='Bar', pretty_print=pretty_print) if self.Baz is not None: - self.Baz.export(outfile, level, namespace_, name_='Baz', pretty_print=pretty_print) + self.Baz.export(outfile, level, namespaceprefix_, name_='Baz', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -866,7 +866,7 @@ class FooType1(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='FooType1', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='FooType1', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('FooType1') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -877,19 +877,19 @@ class FooType1(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='FooType1') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FooType1') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='FooType1', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='FooType1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='FooType1'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FooType1'): pass - def exportChildren(self, outfile, level, namespace_='', name_='FooType1', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='FooType1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -953,7 +953,7 @@ class BarType2(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='BarType2', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='BarType2', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('BarType2') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -964,19 +964,19 @@ class BarType2(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='BarType2') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BarType2') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='BarType2', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='BarType2', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='BarType2'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BarType2'): pass - def exportChildren(self, outfile, level, namespace_='', name_='BarType2', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='BarType2', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1040,7 +1040,7 @@ class BazType3(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='BazType3', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='BazType3', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('BazType3') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1051,19 +1051,19 @@ class BazType3(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='BazType3') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BazType3') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='BazType3', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='BazType3', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='BazType3'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BazType3'): pass - def exportChildren(self, outfile, level, namespace_='', name_='BazType3', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='BazType3', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/anysimpletype1_sup.py b/tests/anysimpletype1_sup.py index 2e1ec8e..d1196d6 100644 --- a/tests/anysimpletype1_sup.py +++ b/tests/anysimpletype1_sup.py @@ -761,7 +761,7 @@ class test1element(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='test1element', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='test1element', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('test1element') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -772,27 +772,27 @@ class test1element(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='test1element') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='test1element') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='test1element', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='test1element', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='test1element'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='test1element'): if self.test1attribute is not None and 'test1attribute' not in already_processed: already_processed.add('test1attribute') outfile.write(' test1attribute=%s' % (quote_attrib(self.test1attribute), )) - def exportChildren(self, outfile, level, namespace_='', name_='test1element', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='test1element', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.test1member is not None: - self.test1member.export(outfile, level, namespace_, name_='test1member', pretty_print=pretty_print) + self.test1member.export(outfile, level, namespaceprefix_, name_='test1member', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -846,7 +846,7 @@ class cimAnySimpleType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='cimAnySimpleType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='cimAnySimpleType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('cimAnySimpleType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -857,17 +857,17 @@ class cimAnySimpleType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='cimAnySimpleType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='cimAnySimpleType') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='cimAnySimpleType', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='cimAnySimpleType', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='cimAnySimpleType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='cimAnySimpleType'): unique_counter = 0 for name, value in self.anyAttributes_.items(): xsinamespaceprefix = 'xsi' @@ -900,7 +900,7 @@ class cimAnySimpleType(GeneratedsSuper): outfile.write(' %s=%s' % ( name, quote_attrib(value), )) pass - def exportChildren(self, outfile, level, namespace_='', name_='cimAnySimpleType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='cimAnySimpleType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() diff --git a/tests/anywildcard1_sup.py b/tests/anywildcard1_sup.py index 1965ae0..7c8236a 100644 --- a/tests/anywildcard1_sup.py +++ b/tests/anywildcard1_sup.py @@ -767,7 +767,7 @@ class PlantType_single(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='PlantType_single', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='PlantType_single', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('PlantType_single') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -778,19 +778,19 @@ class PlantType_single(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='PlantType_single') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PlantType_single') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='PlantType_single', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='PlantType_single', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='PlantType_single'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PlantType_single'): pass - def exportChildren(self, outfile, level, namespace_='', name_='PlantType_single', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='PlantType_single', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -799,9 +799,9 @@ class PlantType_single(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<name>%s</name>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.name), input_name='name')), eol_)) if self.description is not None: - self.description.export(outfile, level, namespace_, name_='description', pretty_print=pretty_print) + self.description.export(outfile, level, namespaceprefix_, name_='description', pretty_print=pretty_print) if self.anytypeobjs_ is not None: - self.anytypeobjs_.export(outfile, level, namespace_, pretty_print=pretty_print) + self.anytypeobjs_.export(outfile, level, namespaceprefix_, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -872,7 +872,7 @@ class PlantType_multiple(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='PlantType_multiple', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='PlantType_multiple', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('PlantType_multiple') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -883,19 +883,19 @@ class PlantType_multiple(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='PlantType_multiple') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PlantType_multiple') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='PlantType_multiple', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='PlantType_multiple', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='PlantType_multiple'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PlantType_multiple'): pass - def exportChildren(self, outfile, level, namespace_='', name_='PlantType_multiple', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='PlantType_multiple', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -904,9 +904,9 @@ class PlantType_multiple(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<name>%s</name>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.name), input_name='name')), eol_)) if self.description is not None: - self.description.export(outfile, level, namespace_, name_='description', pretty_print=pretty_print) + self.description.export(outfile, level, namespaceprefix_, name_='description', pretty_print=pretty_print) for obj_ in self.anytypeobjs_: - obj_.export(outfile, level, namespace_, pretty_print=pretty_print) + obj_.export(outfile, level, namespaceprefix_, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -968,7 +968,7 @@ class DescriptionType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DescriptionType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DescriptionType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DescriptionType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -979,19 +979,19 @@ class DescriptionType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DescriptionType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DescriptionType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DescriptionType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DescriptionType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DescriptionType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DescriptionType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='DescriptionType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DescriptionType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1058,7 +1058,7 @@ class CatalogType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='CatalogType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='CatalogType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('CatalogType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1069,19 +1069,19 @@ class CatalogType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='CatalogType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='CatalogType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='CatalogType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='CatalogType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='CatalogType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='CatalogType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='CatalogType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='CatalogType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1146,7 +1146,7 @@ class PlantType_single_nochild(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='PlantType_single_nochild', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='PlantType_single_nochild', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('PlantType_single_nochild') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1157,25 +1157,25 @@ class PlantType_single_nochild(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='PlantType_single_nochild') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PlantType_single_nochild') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='PlantType_single_nochild', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='PlantType_single_nochild', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='PlantType_single_nochild'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PlantType_single_nochild'): pass - def exportChildren(self, outfile, level, namespace_='', name_='PlantType_single_nochild', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='PlantType_single_nochild', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.anytypeobjs_ is not None: - self.anytypeobjs_.export(outfile, level, namespace_, pretty_print=pretty_print) + self.anytypeobjs_.export(outfile, level, namespaceprefix_, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1226,7 +1226,7 @@ class PlantType_multiple_nochild(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='PlantType_multiple_nochild', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='PlantType_multiple_nochild', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('PlantType_multiple_nochild') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1237,25 +1237,25 @@ class PlantType_multiple_nochild(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='PlantType_multiple_nochild') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PlantType_multiple_nochild') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='PlantType_multiple_nochild', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='PlantType_multiple_nochild', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='PlantType_multiple_nochild'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PlantType_multiple_nochild'): pass - def exportChildren(self, outfile, level, namespace_='', name_='PlantType_multiple_nochild', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='PlantType_multiple_nochild', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for obj_ in self.anytypeobjs_: - obj_.export(outfile, level, namespace_, pretty_print=pretty_print) + obj_.export(outfile, level, namespaceprefix_, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) diff --git a/tests/attr_groups1_sup.py b/tests/attr_groups1_sup.py index fe40940..1cbe23a 100644 --- a/tests/attr_groups1_sup.py +++ b/tests/attr_groups1_sup.py @@ -793,7 +793,7 @@ class GetUserReq(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='GetUserReq', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='GetUserReq', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('GetUserReq') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -804,17 +804,17 @@ class GetUserReq(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='GetUserReq') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='GetUserReq') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='GetUserReq', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='GetUserReq', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='GetUserReq'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='GetUserReq'): if self.sequence is not None and 'sequence' not in already_processed: already_processed.add('sequence') outfile.write(' sequence="%s"' % self.gds_format_integer(self.sequence, input_name='sequence')) @@ -842,7 +842,7 @@ class GetUserReq(GeneratedsSuper): if self.value08 is not None and 'value08' not in already_processed: already_processed.add('value08') outfile.write(' value08=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value08), input_name='value08')), )) - def exportChildren(self, outfile, level, namespace_='', name_='GetUserReq', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='GetUserReq', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/cdata1_sup.py b/tests/cdata1_sup.py index 8df3046..5e122ff 100644 --- a/tests/cdata1_sup.py +++ b/tests/cdata1_sup.py @@ -764,7 +764,7 @@ class cdataListType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='cdataListType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='cdataListType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('cdataListType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -775,25 +775,25 @@ class cdataListType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='cdataListType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='cdataListType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='cdataListType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='cdataListType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='cdataListType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='cdataListType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='cdataListType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='cdataListType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for cdatalist_ in self.cdatalist: - cdatalist_.export(outfile, level, namespace_, name_='cdatalist', pretty_print=pretty_print) + cdatalist_.export(outfile, level, namespaceprefix_, name_='cdatalist', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -841,7 +841,7 @@ class cdataType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='cdataType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='cdataType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('cdataType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -852,19 +852,19 @@ class cdataType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='cdataType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='cdataType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='cdataType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='cdataType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='cdataType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='cdataType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='cdataType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='cdataType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/cleanupname1_sup.py b/tests/cleanupname1_sup.py index 16bac1b..47ae245 100644 --- a/tests/cleanupname1_sup.py +++ b/tests/cleanupname1_sup.py @@ -778,7 +778,7 @@ class dataKind(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='dataType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='dataType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('dataType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -789,33 +789,33 @@ class dataKind(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='dataType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='dataType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='dataType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='dataType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='dataType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='dataType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='dataType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='dataType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.data1 is not None: - self.data1.export(outfile, level, namespace_, name_='data1', pretty_print=pretty_print) + self.data1.export(outfile, level, namespaceprefix_, name_='data1', pretty_print=pretty_print) if self.data2 is not None: - self.data2.export(outfile, level, namespace_, name_='data2', pretty_print=pretty_print) + self.data2.export(outfile, level, namespaceprefix_, name_='data2', pretty_print=pretty_print) if self.data3 is not None: - self.data3.export(outfile, level, namespace_, name_='data3', pretty_print=pretty_print) + self.data3.export(outfile, level, namespaceprefix_, name_='data3', pretty_print=pretty_print) if self.data4 is not None: - self.data4.export(outfile, level, namespace_, name_='data4', pretty_print=pretty_print) + self.data4.export(outfile, level, namespaceprefix_, name_='data4', pretty_print=pretty_print) if self.data5 is not None: - self.data5.export(outfile, level, namespace_, name_='data5', pretty_print=pretty_print) + self.data5.export(outfile, level, namespaceprefix_, name_='data5', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -883,7 +883,7 @@ class data1Kind(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='data1Type', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='data1Type', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('data1Type') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -894,19 +894,19 @@ class data1Kind(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='data1Type') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='data1Type') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='data1Type', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='data1Type', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='data1Type'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='data1Type'): pass - def exportChildren(self, outfile, level, namespace_='', name_='data1Type', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='data1Type', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -960,7 +960,7 @@ class MlassData2(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='TypeData2', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='TypeData2', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('TypeData2') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -971,19 +971,19 @@ class MlassData2(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='TypeData2') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='TypeData2') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='TypeData2', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='TypeData2', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='TypeData2'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='TypeData2'): pass - def exportChildren(self, outfile, level, namespace_='', name_='TypeData2', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='TypeData2', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1037,7 +1037,7 @@ class RealTypeData3(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='RealTypeData3', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='RealTypeData3', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('RealTypeData3') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1048,19 +1048,19 @@ class RealTypeData3(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='RealTypeData3') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='RealTypeData3') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='RealTypeData3', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='RealTypeData3', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='RealTypeData3'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='RealTypeData3'): pass - def exportChildren(self, outfile, level, namespace_='', name_='RealTypeData3', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='RealTypeData3', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1114,7 +1114,7 @@ class MMMMMMdataKind(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='AABBCCdataType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='AABBCCdataType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('AABBCCdataType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1125,19 +1125,19 @@ class MMMMMMdataKind(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='AABBCCdataType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='AABBCCdataType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='AABBCCdataType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='AABBCCdataType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='AABBCCdataType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='AABBCCdataType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='AABBCCdataType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='AABBCCdataType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1191,7 +1191,7 @@ class dataTypeNNNMNNN(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='dataTypeXYZAXYZ', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='dataTypeXYZAXYZ', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('dataTypeXYZAXYZ') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1202,19 +1202,19 @@ class dataTypeNNNMNNN(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='dataTypeXYZAXYZ') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='dataTypeXYZAXYZ') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='dataTypeXYZAXYZ', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='dataTypeXYZAXYZ', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='dataTypeXYZAXYZ'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='dataTypeXYZAXYZ'): pass - def exportChildren(self, outfile, level, namespace_='', name_='dataTypeXYZAXYZ', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='dataTypeXYZAXYZ', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/defaults_cases1_sup.py b/tests/defaults_cases1_sup.py index 4538332..3dd0935 100644 --- a/tests/defaults_cases1_sup.py +++ b/tests/defaults_cases1_sup.py @@ -795,7 +795,7 @@ class DefaultTypes(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultTypes', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultTypes', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultTypes') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -806,31 +806,31 @@ class DefaultTypes(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultTypes') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultTypes') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultTypes', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultTypes', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultTypes'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultTypes'): pass - def exportChildren(self, outfile, level, namespace_='', name_='DefaultTypes', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultTypes', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for default1_ in self.default1: - default1_.export(outfile, level, namespace_, name_='default1', pretty_print=pretty_print) + default1_.export(outfile, level, namespaceprefix_, name_='default1', pretty_print=pretty_print) for default2_ in self.default2: - default2_.export(outfile, level, namespace_, name_='default2', pretty_print=pretty_print) + default2_.export(outfile, level, namespaceprefix_, name_='default2', pretty_print=pretty_print) for fixed1_ in self.fixed1: - fixed1_.export(outfile, level, namespace_, name_='fixed1', pretty_print=pretty_print) + fixed1_.export(outfile, level, namespaceprefix_, name_='fixed1', pretty_print=pretty_print) for fixed2_ in self.fixed2: - fixed2_.export(outfile, level, namespace_, name_='fixed2', pretty_print=pretty_print) + fixed2_.export(outfile, level, namespaceprefix_, name_='fixed2', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -928,7 +928,7 @@ class DefaultType1(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultType1', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultType1', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultType1') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -939,19 +939,19 @@ class DefaultType1(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultType1') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultType1') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultType1', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultType1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultType1'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultType1'): pass - def exportChildren(self, outfile, level, namespace_='', name_='DefaultType1', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultType1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1090,7 +1090,7 @@ class DefaultType2(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultType2', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultType2', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultType2') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1101,16 +1101,16 @@ class DefaultType2(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultType2') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultType2') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultType2', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultType2', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultType2'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultType2'): if self.attrdefault01 != "abcd" and 'attrdefault01' not in already_processed: already_processed.add('attrdefault01') outfile.write(' attrdefault01=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.attrdefault01), input_name='attrdefault01')), )) @@ -1123,7 +1123,7 @@ class DefaultType2(GeneratedsSuper): if self.attrnormal02 is not None and 'attrnormal02' not in already_processed: already_processed.add('attrnormal02') outfile.write(' attrnormal02="%s"' % self.gds_format_integer(self.attrnormal02, input_name='attrnormal02')) - def exportChildren(self, outfile, level, namespace_='', name_='DefaultType2', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultType2', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -1224,7 +1224,7 @@ class FixedType1(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='FixedType1', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='FixedType1', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('FixedType1') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1235,19 +1235,19 @@ class FixedType1(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='FixedType1') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FixedType1') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='FixedType1', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='FixedType1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='FixedType1'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FixedType1'): pass - def exportChildren(self, outfile, level, namespace_='', name_='FixedType1', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='FixedType1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1386,7 +1386,7 @@ class FixedType2(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='FixedType2', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='FixedType2', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('FixedType2') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1397,16 +1397,16 @@ class FixedType2(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='FixedType2') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='FixedType2') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='FixedType2', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='FixedType2', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='FixedType2'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='FixedType2'): if self.attrfixed01 != "abcd" and 'attrfixed01' not in already_processed: already_processed.add('attrfixed01') outfile.write(' attrfixed01=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.attrfixed01), input_name='attrfixed01')), )) @@ -1419,7 +1419,7 @@ class FixedType2(GeneratedsSuper): if self.attrnormal02 is not None and 'attrnormal02' not in already_processed: already_processed.add('attrnormal02') outfile.write(' attrnormal02="%s"' % self.gds_format_integer(self.attrnormal02, input_name='attrnormal02')) - def exportChildren(self, outfile, level, namespace_='', name_='FixedType2', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='FixedType2', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() diff --git a/tests/defaults_cases_always1_sup.py b/tests/defaults_cases_always1_sup.py index fc155a5..336bd86 100644 --- a/tests/defaults_cases_always1_sup.py +++ b/tests/defaults_cases_always1_sup.py @@ -774,7 +774,7 @@ class DefaultTypes(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultTypes', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultTypes', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultTypes') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -785,27 +785,27 @@ class DefaultTypes(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultTypes') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultTypes') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultTypes', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultTypes', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultTypes'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultTypes'): pass - def exportChildren(self, outfile, level, namespace_='', name_='DefaultTypes', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultTypes', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for default1_ in self.default1: - default1_.export(outfile, level, namespace_, name_='default1', pretty_print=pretty_print) + default1_.export(outfile, level, namespaceprefix_, name_='default1', pretty_print=pretty_print) for default2_ in self.default2: - default2_.export(outfile, level, namespace_, name_='default2', pretty_print=pretty_print) + default2_.export(outfile, level, namespaceprefix_, name_='default2', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -893,7 +893,7 @@ class DefaultType1(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultType1', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultType1', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultType1') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -904,19 +904,19 @@ class DefaultType1(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultType1') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultType1') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultType1', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultType1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultType1'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultType1'): pass - def exportChildren(self, outfile, level, namespace_='', name_='DefaultType1', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultType1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1055,7 +1055,7 @@ class DefaultType2(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultType2', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultType2', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultType2') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1066,16 +1066,16 @@ class DefaultType2(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultType2') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultType2') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultType2', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultType2', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultType2'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultType2'): if self.attrdefault01 is not None and 'attrdefault01' not in already_processed: already_processed.add('attrdefault01') outfile.write(' attrdefault01=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.attrdefault01), input_name='attrdefault01')), )) @@ -1088,7 +1088,7 @@ class DefaultType2(GeneratedsSuper): if self.attrnormal02 is not None and 'attrnormal02' not in already_processed: already_processed.add('attrnormal02') outfile.write(' attrnormal02="%s"' % self.gds_format_integer(self.attrnormal02, input_name='attrnormal02')) - def exportChildren(self, outfile, level, namespace_='', name_='DefaultType2', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultType2', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() diff --git a/tests/defaults_cases_always2_sup.py b/tests/defaults_cases_always2_sup.py index fc155a5..336bd86 100644 --- a/tests/defaults_cases_always2_sup.py +++ b/tests/defaults_cases_always2_sup.py @@ -774,7 +774,7 @@ class DefaultTypes(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultTypes', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultTypes', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultTypes') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -785,27 +785,27 @@ class DefaultTypes(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultTypes') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultTypes') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultTypes', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultTypes', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultTypes'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultTypes'): pass - def exportChildren(self, outfile, level, namespace_='', name_='DefaultTypes', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultTypes', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for default1_ in self.default1: - default1_.export(outfile, level, namespace_, name_='default1', pretty_print=pretty_print) + default1_.export(outfile, level, namespaceprefix_, name_='default1', pretty_print=pretty_print) for default2_ in self.default2: - default2_.export(outfile, level, namespace_, name_='default2', pretty_print=pretty_print) + default2_.export(outfile, level, namespaceprefix_, name_='default2', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -893,7 +893,7 @@ class DefaultType1(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultType1', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultType1', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultType1') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -904,19 +904,19 @@ class DefaultType1(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultType1') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultType1') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultType1', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultType1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultType1'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultType1'): pass - def exportChildren(self, outfile, level, namespace_='', name_='DefaultType1', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultType1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1055,7 +1055,7 @@ class DefaultType2(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultType2', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultType2', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultType2') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1066,16 +1066,16 @@ class DefaultType2(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultType2') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultType2') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultType2', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultType2', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultType2'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultType2'): if self.attrdefault01 is not None and 'attrdefault01' not in already_processed: already_processed.add('attrdefault01') outfile.write(' attrdefault01=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.attrdefault01), input_name='attrdefault01')), )) @@ -1088,7 +1088,7 @@ class DefaultType2(GeneratedsSuper): if self.attrnormal02 is not None and 'attrnormal02' not in already_processed: already_processed.add('attrnormal02') outfile.write(' attrnormal02="%s"' % self.gds_format_integer(self.attrnormal02, input_name='attrnormal02')) - def exportChildren(self, outfile, level, namespace_='', name_='DefaultType2', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultType2', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() diff --git a/tests/defaults_coverage1_sup.py b/tests/defaults_coverage1_sup.py index 318cf4a..57b3741 100644 --- a/tests/defaults_coverage1_sup.py +++ b/tests/defaults_coverage1_sup.py @@ -762,7 +762,7 @@ class DefaultTypes(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultTypes', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultTypes', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultTypes') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -773,27 +773,27 @@ class DefaultTypes(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultTypes') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultTypes') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultTypes', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultTypes', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultTypes'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultTypes'): pass - def exportChildren(self, outfile, level, namespace_='', name_='DefaultTypes', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultTypes', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.default1 is not None: - self.default1.export(outfile, level, namespace_, name_='default1', pretty_print=pretty_print) + self.default1.export(outfile, level, namespaceprefix_, name_='default1', pretty_print=pretty_print) if self.default2 is not None: - self.default2.export(outfile, level, namespace_, name_='default2', pretty_print=pretty_print) + self.default2.export(outfile, level, namespaceprefix_, name_='default2', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -950,7 +950,7 @@ class DefaultType1(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultType1', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultType1', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultType1') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -961,19 +961,19 @@ class DefaultType1(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultType1') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultType1') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultType1', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultType1', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultType1'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultType1'): pass - def exportChildren(self, outfile, level, namespace_='', name_='DefaultType1', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultType1', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1285,7 +1285,7 @@ class DefaultType2(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='DefaultType2', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DefaultType2', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DefaultType2') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1296,19 +1296,19 @@ class DefaultType2(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DefaultType2') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DefaultType2') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='DefaultType2', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DefaultType2', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DefaultType2'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DefaultType2'): pass - def exportChildren(self, outfile, level, namespace_='', name_='DefaultType2', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DefaultType2', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/extensions1_sup.py b/tests/extensions1_sup.py index 46d4e74..c26096a 100644 --- a/tests/extensions1_sup.py +++ b/tests/extensions1_sup.py @@ -776,7 +776,7 @@ class SpecialDate(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='SpecialDate', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='SpecialDate', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('SpecialDate') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -787,21 +787,21 @@ class SpecialDate(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='SpecialDate') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SpecialDate') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='SpecialDate', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='SpecialDate', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='SpecialDate'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='SpecialDate'): if self.SpecialProperty is not None and 'SpecialProperty' not in already_processed: already_processed.add('SpecialProperty') outfile.write(' SpecialProperty=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.SpecialProperty), input_name='SpecialProperty')), )) - def exportChildren(self, outfile, level, namespace_='', name_='SpecialDate', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='SpecialDate', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -854,7 +854,7 @@ class ExtremeDate(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='ExtremeDate', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='ExtremeDate', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('ExtremeDate') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -865,21 +865,21 @@ class ExtremeDate(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='ExtremeDate') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExtremeDate') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='ExtremeDate', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='ExtremeDate', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='ExtremeDate'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='ExtremeDate'): if self.ExtremeProperty is not None and 'ExtremeProperty' not in already_processed: already_processed.add('ExtremeProperty') outfile.write(' ExtremeProperty=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.ExtremeProperty), input_name='ExtremeProperty')), )) - def exportChildren(self, outfile, level, namespace_='', name_='ExtremeDate', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='ExtremeDate', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -932,7 +932,7 @@ class singleExtremeDate(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='singleExtremeDate', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='singleExtremeDate', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('singleExtremeDate') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -943,21 +943,21 @@ class singleExtremeDate(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='singleExtremeDate') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='singleExtremeDate') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='singleExtremeDate', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='singleExtremeDate', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='singleExtremeDate'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='singleExtremeDate'): if self.ExtremeProperty is not None and 'ExtremeProperty' not in already_processed: already_processed.add('ExtremeProperty') outfile.write(' ExtremeProperty=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.ExtremeProperty), input_name='ExtremeProperty')), )) - def exportChildren(self, outfile, level, namespace_='', name_='singleExtremeDate', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='singleExtremeDate', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -1017,7 +1017,7 @@ class containerType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='containerType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='containerType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('containerType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1028,27 +1028,27 @@ class containerType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='containerType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='containerType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='containerType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='containerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='containerType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='containerType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='containerType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='containerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for simplefactoid_ in self.simplefactoid: - simplefactoid_.export(outfile, level, namespace_, name_='simplefactoid', pretty_print=pretty_print) + simplefactoid_.export(outfile, level, namespaceprefix_, name_='simplefactoid', pretty_print=pretty_print) if self.mixedfactoid is not None: - self.mixedfactoid.export(outfile, level, namespace_, name_='mixedfactoid', pretty_print=pretty_print) + self.mixedfactoid.export(outfile, level, namespaceprefix_, name_='mixedfactoid', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1132,7 +1132,7 @@ class simpleFactoidType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='simpleFactoidType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='simpleFactoidType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('simpleFactoidType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1143,19 +1143,19 @@ class simpleFactoidType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='simpleFactoidType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='simpleFactoidType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='simpleFactoidType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='simpleFactoidType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simpleFactoidType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='simpleFactoidType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='simpleFactoidType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='simpleFactoidType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1256,7 +1256,7 @@ class mixedFactoidType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='mixedFactoidType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='mixedFactoidType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('mixedFactoidType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1267,22 +1267,22 @@ class mixedFactoidType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='mixedFactoidType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='mixedFactoidType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='mixedFactoidType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='mixedFactoidType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='mixedFactoidType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='mixedFactoidType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='mixedFactoidType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='mixedFactoidType', fromsubclass_=False, pretty_print=True): if not fromsubclass_: for item_ in self.content_: - item_.export(outfile, level, item_.name, namespace_, pretty_print=pretty_print) + item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1357,7 +1357,7 @@ class BaseType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='BaseType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='BaseType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('BaseType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1368,17 +1368,17 @@ class BaseType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='BaseType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BaseType') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='BaseType', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='BaseType', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='BaseType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BaseType'): if self.BaseProperty1 is not None and 'BaseProperty1' not in already_processed: already_processed.add('BaseProperty1') outfile.write(' BaseProperty1=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.BaseProperty1), input_name='BaseProperty1')), )) @@ -1389,7 +1389,7 @@ class BaseType(GeneratedsSuper): already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) - def exportChildren(self, outfile, level, namespace_='', name_='BaseType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='BaseType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -1456,7 +1456,7 @@ class DerivedType(BaseType): return True else: return False - def export(self, outfile, level, namespace_='', name_='DerivedType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='DerivedType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('DerivedType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1467,26 +1467,26 @@ class DerivedType(BaseType): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='DerivedType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DerivedType') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='DerivedType', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='DerivedType', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='DerivedType'): - super(DerivedType, self).exportAttributes(outfile, level, already_processed, namespace_, name_='DerivedType') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='DerivedType'): + super(DerivedType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='DerivedType') if self.DerivedProperty1 is not None and 'DerivedProperty1' not in already_processed: already_processed.add('DerivedProperty1') outfile.write(' DerivedProperty1=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.DerivedProperty1), input_name='DerivedProperty1')), )) if self.DerivedProperty2 is not None and 'DerivedProperty2' not in already_processed: already_processed.add('DerivedProperty2') outfile.write(' DerivedProperty2=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.DerivedProperty2), input_name='DerivedProperty2')), )) - def exportChildren(self, outfile, level, namespace_='', name_='DerivedType', fromsubclass_=False, pretty_print=True): - super(DerivedType, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='', name_='DerivedType', fromsubclass_=False, pretty_print=True): + super(DerivedType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) pass def build(self, node): already_processed = set() @@ -1544,7 +1544,7 @@ class MyInteger(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='MyInteger', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='MyInteger', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('MyInteger') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1555,21 +1555,21 @@ class MyInteger(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='MyInteger') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MyInteger') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='MyInteger', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='MyInteger', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='MyInteger'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MyInteger'): if self.MyAttr is not None and 'MyAttr' not in already_processed: already_processed.add('MyAttr') outfile.write(' MyAttr=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.MyAttr), input_name='MyAttr')), )) - def exportChildren(self, outfile, level, namespace_='', name_='MyInteger', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='MyInteger', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -1622,7 +1622,7 @@ class MyBoolean(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='MyBoolean', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='MyBoolean', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('MyBoolean') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1633,21 +1633,21 @@ class MyBoolean(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='MyBoolean') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MyBoolean') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='MyBoolean', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='MyBoolean', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='MyBoolean'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MyBoolean'): if self.MyAttr is not None and 'MyAttr' not in already_processed: already_processed.add('MyAttr') outfile.write(' MyAttr=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.MyAttr), input_name='MyAttr')), )) - def exportChildren(self, outfile, level, namespace_='', name_='MyBoolean', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='MyBoolean', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -1700,7 +1700,7 @@ class MyFloat(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='MyFloat', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='MyFloat', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('MyFloat') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1711,21 +1711,21 @@ class MyFloat(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='MyFloat') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MyFloat') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='MyFloat', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='MyFloat', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='MyFloat'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MyFloat'): if self.MyAttr is not None and 'MyAttr' not in already_processed: already_processed.add('MyAttr') outfile.write(' MyAttr=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.MyAttr), input_name='MyAttr')), )) - def exportChildren(self, outfile, level, namespace_='', name_='MyFloat', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='MyFloat', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -1778,7 +1778,7 @@ class MyDouble(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='MyDouble', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='MyDouble', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('MyDouble') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1789,21 +1789,21 @@ class MyDouble(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='MyDouble') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='MyDouble') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='MyDouble', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='MyDouble', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='MyDouble'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='MyDouble'): if self.MyAttr is not None and 'MyAttr' not in already_processed: already_processed.add('MyAttr') outfile.write(' MyAttr=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.MyAttr), input_name='MyAttr')), )) - def exportChildren(self, outfile, level, namespace_='', name_='MyDouble', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='MyDouble', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() diff --git a/tests/ipo1_sup.py b/tests/ipo1_sup.py index 9f64f69..2fca052 100644 --- a/tests/ipo1_sup.py +++ b/tests/ipo1_sup.py @@ -786,7 +786,7 @@ class PurchaseOrderType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='PurchaseOrderType', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='PurchaseOrderType', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('PurchaseOrderType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -797,34 +797,34 @@ class PurchaseOrderType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='PurchaseOrderType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PurchaseOrderType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='PurchaseOrderType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='PurchaseOrderType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='PurchaseOrderType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='PurchaseOrderType'): if self.orderDate is not None and 'orderDate' not in already_processed: already_processed.add('orderDate') outfile.write(' orderDate="%s"' % self.gds_format_date(self.orderDate, input_name='orderDate')) - def exportChildren(self, outfile, level, namespace_='ipo:', name_='PurchaseOrderType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='PurchaseOrderType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.shipTo is not None: - self.shipTo.export(outfile, level, namespace_, name_='shipTo', pretty_print=pretty_print) + self.shipTo.export(outfile, level, namespaceprefix_, name_='shipTo', pretty_print=pretty_print) if self.billTo is not None: - self.billTo.export(outfile, level, namespace_, name_='billTo', pretty_print=pretty_print) + self.billTo.export(outfile, level, namespaceprefix_, name_='billTo', pretty_print=pretty_print) if self.comment is not None: showIndent(outfile, level, pretty_print) outfile.write('<ipo:comment>%s</ipo:comment>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.comment), input_name='comment')), eol_)) if self.items is not None: - self.items.export(outfile, level, namespace_, name_='items', pretty_print=pretty_print) + self.items.export(outfile, level, namespaceprefix_, name_='items', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -900,7 +900,7 @@ class Items(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='Items', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='Items', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('Items') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -911,25 +911,25 @@ class Items(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='Items') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Items') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='Items', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='Items', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='Items'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='Items'): pass - def exportChildren(self, outfile, level, namespace_='ipo:', name_='Items', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='Items', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for item_ in self.item: - item_.export(outfile, level, namespace_, name_='item', pretty_print=pretty_print) + item_.export(outfile, level, namespaceprefix_, name_='item', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1005,7 +1005,7 @@ class item(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='item', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='item', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('item') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1016,21 +1016,21 @@ class item(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='item') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='item') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='item', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='item', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='item'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='item'): if self.partNum is not None and 'partNum' not in already_processed: already_processed.add('partNum') outfile.write(' partNum=%s' % (quote_attrib(self.partNum), )) - def exportChildren(self, outfile, level, namespace_='ipo:', name_='item', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='item', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1122,7 +1122,7 @@ class quantity(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='quantity', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='quantity', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('quantity') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1133,18 +1133,18 @@ class quantity(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='quantity') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='quantity') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='quantity', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='quantity', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='quantity'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='quantity'): pass - def exportChildren(self, outfile, level, namespace_='ipo:', name_='quantity', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='quantity', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -1202,7 +1202,7 @@ class Address(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='Address', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='Address', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('Address') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1213,23 +1213,23 @@ class Address(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='Address') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Address') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='Address', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='Address', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='Address'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='Address'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespace_='ipo:', name_='Address', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='Address', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1320,7 +1320,7 @@ class USAddress(Address): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='USAddress', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='USAddress', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('USAddress') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1331,20 +1331,20 @@ class USAddress(Address): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='USAddress') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='USAddress') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='USAddress', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='USAddress', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='USAddress'): - super(USAddress, self).exportAttributes(outfile, level, already_processed, namespace_, name_='USAddress') - def exportChildren(self, outfile, level, namespace_='ipo:', name_='USAddress', fromsubclass_=False, pretty_print=True): - super(USAddress, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='USAddress'): + super(USAddress, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='USAddress') + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='USAddress', fromsubclass_=False, pretty_print=True): + super(USAddress, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1420,7 +1420,7 @@ class UKAddress(Address): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='UKAddress', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='UKAddress', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('UKAddress') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1431,23 +1431,23 @@ class UKAddress(Address): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='UKAddress') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UKAddress') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='UKAddress', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='UKAddress', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='UKAddress'): - super(UKAddress, self).exportAttributes(outfile, level, already_processed, namespace_, name_='UKAddress') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='UKAddress'): + super(UKAddress, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UKAddress') if self.exportCode != 1 and 'exportCode' not in already_processed: already_processed.add('exportCode') outfile.write(' exportCode="%s"' % self.gds_format_integer(self.exportCode, input_name='exportCode')) - def exportChildren(self, outfile, level, namespace_='ipo:', name_='UKAddress', fromsubclass_=False, pretty_print=True): - super(UKAddress, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='UKAddress', fromsubclass_=False, pretty_print=True): + super(UKAddress, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: diff --git a/tests/ipo2_sup.py b/tests/ipo2_sup.py index 9f64f69..2fca052 100644 --- a/tests/ipo2_sup.py +++ b/tests/ipo2_sup.py @@ -786,7 +786,7 @@ class PurchaseOrderType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='PurchaseOrderType', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='PurchaseOrderType', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('PurchaseOrderType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -797,34 +797,34 @@ class PurchaseOrderType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='PurchaseOrderType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PurchaseOrderType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='PurchaseOrderType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='PurchaseOrderType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='PurchaseOrderType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='PurchaseOrderType'): if self.orderDate is not None and 'orderDate' not in already_processed: already_processed.add('orderDate') outfile.write(' orderDate="%s"' % self.gds_format_date(self.orderDate, input_name='orderDate')) - def exportChildren(self, outfile, level, namespace_='ipo:', name_='PurchaseOrderType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='PurchaseOrderType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.shipTo is not None: - self.shipTo.export(outfile, level, namespace_, name_='shipTo', pretty_print=pretty_print) + self.shipTo.export(outfile, level, namespaceprefix_, name_='shipTo', pretty_print=pretty_print) if self.billTo is not None: - self.billTo.export(outfile, level, namespace_, name_='billTo', pretty_print=pretty_print) + self.billTo.export(outfile, level, namespaceprefix_, name_='billTo', pretty_print=pretty_print) if self.comment is not None: showIndent(outfile, level, pretty_print) outfile.write('<ipo:comment>%s</ipo:comment>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.comment), input_name='comment')), eol_)) if self.items is not None: - self.items.export(outfile, level, namespace_, name_='items', pretty_print=pretty_print) + self.items.export(outfile, level, namespaceprefix_, name_='items', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -900,7 +900,7 @@ class Items(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='Items', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='Items', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('Items') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -911,25 +911,25 @@ class Items(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='Items') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Items') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='Items', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='Items', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='Items'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='Items'): pass - def exportChildren(self, outfile, level, namespace_='ipo:', name_='Items', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='Items', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for item_ in self.item: - item_.export(outfile, level, namespace_, name_='item', pretty_print=pretty_print) + item_.export(outfile, level, namespaceprefix_, name_='item', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1005,7 +1005,7 @@ class item(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='item', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='item', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('item') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1016,21 +1016,21 @@ class item(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='item') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='item') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='item', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='item', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='item'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='item'): if self.partNum is not None and 'partNum' not in already_processed: already_processed.add('partNum') outfile.write(' partNum=%s' % (quote_attrib(self.partNum), )) - def exportChildren(self, outfile, level, namespace_='ipo:', name_='item', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='item', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1122,7 +1122,7 @@ class quantity(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='quantity', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='quantity', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('quantity') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1133,18 +1133,18 @@ class quantity(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='quantity') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='quantity') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='quantity', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='quantity', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='quantity'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='quantity'): pass - def exportChildren(self, outfile, level, namespace_='ipo:', name_='quantity', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='quantity', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -1202,7 +1202,7 @@ class Address(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='Address', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='Address', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('Address') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1213,23 +1213,23 @@ class Address(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='Address') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='Address') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='Address', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='Address', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='Address'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='Address'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespace_='ipo:', name_='Address', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='Address', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1320,7 +1320,7 @@ class USAddress(Address): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='USAddress', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='USAddress', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('USAddress') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1331,20 +1331,20 @@ class USAddress(Address): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='USAddress') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='USAddress') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='USAddress', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='USAddress', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='USAddress'): - super(USAddress, self).exportAttributes(outfile, level, already_processed, namespace_, name_='USAddress') - def exportChildren(self, outfile, level, namespace_='ipo:', name_='USAddress', fromsubclass_=False, pretty_print=True): - super(USAddress, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='USAddress'): + super(USAddress, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='USAddress') + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='USAddress', fromsubclass_=False, pretty_print=True): + super(USAddress, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1420,7 +1420,7 @@ class UKAddress(Address): return True else: return False - def export(self, outfile, level, namespace_='ipo:', name_='UKAddress', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='ipo:', name_='UKAddress', namespacedef_='xmlns:ipo="http://www.example.com/IPO"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('UKAddress') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1431,23 +1431,23 @@ class UKAddress(Address): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='UKAddress') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UKAddress') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='ipo:', name_='UKAddress', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='ipo:', name_='UKAddress', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='ipo:', name_='UKAddress'): - super(UKAddress, self).exportAttributes(outfile, level, already_processed, namespace_, name_='UKAddress') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='ipo:', name_='UKAddress'): + super(UKAddress, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='UKAddress') if self.exportCode != 1 and 'exportCode' not in already_processed: already_processed.add('exportCode') outfile.write(' exportCode="%s"' % self.gds_format_integer(self.exportCode, input_name='exportCode')) - def exportChildren(self, outfile, level, namespace_='ipo:', name_='UKAddress', fromsubclass_=False, pretty_print=True): - super(UKAddress, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='ipo:', name_='UKAddress', fromsubclass_=False, pretty_print=True): + super(UKAddress, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: diff --git a/tests/mapcleanname1_sup.py b/tests/mapcleanname1_sup.py index 0dfcead..6cc5905 100644 --- a/tests/mapcleanname1_sup.py +++ b/tests/mapcleanname1_sup.py @@ -778,7 +778,7 @@ class complex_type01(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='complex-type01', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='complex-type01', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('complex-type01') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -789,19 +789,19 @@ class complex_type01(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='complex-type01') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='complex-type01') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='complex-type01', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='complex-type01', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='complex-type01'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='complex-type01'): pass - def exportChildren(self, outfile, level, namespace_='', name_='complex-type01', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='complex-type01', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -816,7 +816,7 @@ class complex_type01(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<float_value01>%s</float_value01>%s' % (self.gds_format_float(self.float_value01, input_name='float_value01'), eol_)) if self.field01 is not None: - self.field01.export(outfile, level, namespace_, name_='field01', pretty_print=pretty_print) + self.field01.export(outfile, level, namespaceprefix_, name_='field01', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -903,7 +903,7 @@ class complex_type02(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='complex-type02', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='complex-type02', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('complex-type02') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -914,23 +914,23 @@ class complex_type02(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='complex-type02') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='complex-type02') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='complex-type02', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='complex-type02', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='complex-type02'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='complex-type02'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespace_='', name_='complex-type02', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='complex-type02', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1027,7 +1027,7 @@ class complex_type03(complex_type02): return True else: return False - def export(self, outfile, level, namespace_='', name_='complex-type03', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='complex-type03', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('complex-type03') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1038,20 +1038,20 @@ class complex_type03(complex_type02): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='complex-type03') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='complex-type03') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='complex-type03', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='complex-type03', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='complex-type03'): - super(complex_type03, self).exportAttributes(outfile, level, already_processed, namespace_, name_='complex-type03') - def exportChildren(self, outfile, level, namespace_='', name_='complex-type03', fromsubclass_=False, pretty_print=True): - super(complex_type03, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='complex-type03'): + super(complex_type03, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='complex-type03') + def exportChildren(self, outfile, level, namespaceprefix_='', name_='complex-type03', fromsubclass_=False, pretty_print=True): + super(complex_type03, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1147,7 +1147,7 @@ class type_(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='type', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='type', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('type') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1158,23 +1158,23 @@ class type_(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='type') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='type') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='type', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='type', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='type'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='type'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespace_='', name_='type', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='type', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1271,7 +1271,7 @@ class complex_type04(type_): return True else: return False - def export(self, outfile, level, namespace_='', name_='complex-type04', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='complex-type04', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('complex-type04') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1282,20 +1282,20 @@ class complex_type04(type_): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='complex-type04') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='complex-type04') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='complex-type04', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='complex-type04', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='complex-type04'): - super(complex_type04, self).exportAttributes(outfile, level, already_processed, namespace_, name_='complex-type04') - def exportChildren(self, outfile, level, namespace_='', name_='complex-type04', fromsubclass_=False, pretty_print=True): - super(complex_type04, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='complex-type04'): + super(complex_type04, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='complex-type04') + def exportChildren(self, outfile, level, namespaceprefix_='', name_='complex-type04', fromsubclass_=False, pretty_print=True): + super(complex_type04, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1391,7 +1391,7 @@ class build_(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='build', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='build', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('build') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1402,23 +1402,23 @@ class build_(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='build') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='build') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='build', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='build', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='build'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='build'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespace_='', name_='build', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='build', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1515,7 +1515,7 @@ class complex_type05(build_): return True else: return False - def export(self, outfile, level, namespace_='', name_='complex-type05', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='complex-type05', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('complex-type05') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1526,20 +1526,20 @@ class complex_type05(build_): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='complex-type05') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='complex-type05') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='complex-type05', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='complex-type05', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='complex-type05'): - super(complex_type05, self).exportAttributes(outfile, level, already_processed, namespace_, name_='complex-type05') - def exportChildren(self, outfile, level, namespace_='', name_='complex-type05', fromsubclass_=False, pretty_print=True): - super(complex_type05, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='complex-type05'): + super(complex_type05, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='complex-type05') + def exportChildren(self, outfile, level, namespaceprefix_='', name_='complex-type05', fromsubclass_=False, pretty_print=True): + super(complex_type05, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: diff --git a/tests/mixedcontent1_sup.py b/tests/mixedcontent1_sup.py index 218fff3..50da494 100644 --- a/tests/mixedcontent1_sup.py +++ b/tests/mixedcontent1_sup.py @@ -762,7 +762,7 @@ class rootType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='rootType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='rootType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('rootType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -773,25 +773,25 @@ class rootType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='rootType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='rootType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='rootType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='rootType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='rootType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='rootType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='rootType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='rootType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for markup_ in self.markup: - markup_.export(outfile, level, namespace_, name_='markup', pretty_print=pretty_print) + markup_.export(outfile, level, namespaceprefix_, name_='markup', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -870,7 +870,7 @@ class markupType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='markupType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='markupType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('markupType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -881,22 +881,22 @@ class markupType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='markupType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='markupType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='markupType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='markupType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='markupType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='markupType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='markupType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='markupType', fromsubclass_=False, pretty_print=True): if not fromsubclass_: for item_ in self.content_: - item_.export(outfile, level, item_.name, namespace_, pretty_print=pretty_print) + item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -905,7 +905,7 @@ class markupType(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<embedded>%s</embedded>%s' % (self.gds_encode(self.gds_format_string(quote_xml(embedded_), input_name='embedded')), eol_)) for nested_ in self.nested: - nested_.export(outfile, level, namespace_, name_='nested', pretty_print=pretty_print) + nested_.export(outfile, level, namespaceprefix_, name_='nested', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1000,7 +1000,7 @@ class nestedType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='nestedType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='nestedType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('nestedType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1011,25 +1011,25 @@ class nestedType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='nestedType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='nestedType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='nestedType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='nestedType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='nestedType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='nestedType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='nestedType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='nestedType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for nested1_ in self.nested1: - nested1_.export(outfile, level, namespace_, name_='nested1', pretty_print=pretty_print) + nested1_.export(outfile, level, namespaceprefix_, name_='nested1', pretty_print=pretty_print) for nested2_ in self.nested2: showIndent(outfile, level, pretty_print) outfile.write('<nested2>%s</nested2>%s' % (self.gds_encode(self.gds_format_string(quote_xml(nested2_), input_name='nested2')), eol_)) @@ -1112,7 +1112,7 @@ class nested1Type(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='nested1Type', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='nested1Type', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('nested1Type') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1123,27 +1123,27 @@ class nested1Type(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='nested1Type') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='nested1Type') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='nested1Type', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='nested1Type', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='nested1Type'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='nested1Type'): pass - def exportChildren(self, outfile, level, namespace_='', name_='nested1Type', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='nested1Type', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for nestedA1_ in self.nestedA1: - nestedA1_.export(outfile, level, namespace_, name_='nestedA1', pretty_print=pretty_print) + nestedA1_.export(outfile, level, namespaceprefix_, name_='nestedA1', pretty_print=pretty_print) for nestedA2_ in self.nestedA2: - nestedA2_.export(outfile, level, namespace_, name_='nestedA2', pretty_print=pretty_print) + nestedA2_.export(outfile, level, namespaceprefix_, name_='nestedA2', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1213,7 +1213,7 @@ class nested1AType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='nested1AType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='nested1AType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('nested1AType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1224,19 +1224,19 @@ class nested1AType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='nested1AType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='nested1AType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='nested1AType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='nested1AType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='nested1AType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='nested1AType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='nested1AType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='nested1AType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/mixedcontent2_sup.py b/tests/mixedcontent2_sup.py index 218fff3..50da494 100644 --- a/tests/mixedcontent2_sup.py +++ b/tests/mixedcontent2_sup.py @@ -762,7 +762,7 @@ class rootType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='rootType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='rootType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('rootType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -773,25 +773,25 @@ class rootType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='rootType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='rootType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='rootType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='rootType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='rootType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='rootType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='rootType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='rootType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for markup_ in self.markup: - markup_.export(outfile, level, namespace_, name_='markup', pretty_print=pretty_print) + markup_.export(outfile, level, namespaceprefix_, name_='markup', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -870,7 +870,7 @@ class markupType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='markupType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='markupType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('markupType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -881,22 +881,22 @@ class markupType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='markupType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='markupType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='markupType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='markupType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='markupType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='markupType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='markupType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='markupType', fromsubclass_=False, pretty_print=True): if not fromsubclass_: for item_ in self.content_: - item_.export(outfile, level, item_.name, namespace_, pretty_print=pretty_print) + item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -905,7 +905,7 @@ class markupType(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<embedded>%s</embedded>%s' % (self.gds_encode(self.gds_format_string(quote_xml(embedded_), input_name='embedded')), eol_)) for nested_ in self.nested: - nested_.export(outfile, level, namespace_, name_='nested', pretty_print=pretty_print) + nested_.export(outfile, level, namespaceprefix_, name_='nested', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1000,7 +1000,7 @@ class nestedType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='nestedType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='nestedType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('nestedType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1011,25 +1011,25 @@ class nestedType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='nestedType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='nestedType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='nestedType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='nestedType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='nestedType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='nestedType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='nestedType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='nestedType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for nested1_ in self.nested1: - nested1_.export(outfile, level, namespace_, name_='nested1', pretty_print=pretty_print) + nested1_.export(outfile, level, namespaceprefix_, name_='nested1', pretty_print=pretty_print) for nested2_ in self.nested2: showIndent(outfile, level, pretty_print) outfile.write('<nested2>%s</nested2>%s' % (self.gds_encode(self.gds_format_string(quote_xml(nested2_), input_name='nested2')), eol_)) @@ -1112,7 +1112,7 @@ class nested1Type(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='nested1Type', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='nested1Type', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('nested1Type') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1123,27 +1123,27 @@ class nested1Type(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='nested1Type') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='nested1Type') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='nested1Type', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='nested1Type', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='nested1Type'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='nested1Type'): pass - def exportChildren(self, outfile, level, namespace_='', name_='nested1Type', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='nested1Type', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for nestedA1_ in self.nestedA1: - nestedA1_.export(outfile, level, namespace_, name_='nestedA1', pretty_print=pretty_print) + nestedA1_.export(outfile, level, namespaceprefix_, name_='nestedA1', pretty_print=pretty_print) for nestedA2_ in self.nestedA2: - nestedA2_.export(outfile, level, namespace_, name_='nestedA2', pretty_print=pretty_print) + nestedA2_.export(outfile, level, namespaceprefix_, name_='nestedA2', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1213,7 +1213,7 @@ class nested1AType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='nested1AType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='nested1AType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('nested1AType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1224,19 +1224,19 @@ class nested1AType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='nested1AType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='nested1AType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='nested1AType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='nested1AType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='nested1AType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='nested1AType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='nested1AType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='nested1AType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/nested_def1_sup.py b/tests/nested_def1_sup.py index af0b3d9..5db145f 100644 --- a/tests/nested_def1_sup.py +++ b/tests/nested_def1_sup.py @@ -761,7 +761,7 @@ class containerType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='containerType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='containerType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('containerType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -772,27 +772,27 @@ class containerType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='containerType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='containerType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='containerType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='containerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='containerType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='containerType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='containerType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='containerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.item1 is not None: - self.item1.export(outfile, level, namespace_, name_='item1', pretty_print=pretty_print) + self.item1.export(outfile, level, namespaceprefix_, name_='item1', pretty_print=pretty_print) if self.item2 is not None: - self.item2.export(outfile, level, namespace_, name_='item2', pretty_print=pretty_print) + self.item2.export(outfile, level, namespaceprefix_, name_='item2', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -845,7 +845,7 @@ class classAType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='classAType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='classAType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('classAType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -856,25 +856,25 @@ class classAType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='classAType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='classAType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='classAType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='classAType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='classAType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='classAType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='classAType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='classAType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.inner is not None: - self.inner.export(outfile, level, namespace_, name_='inner', pretty_print=pretty_print) + self.inner.export(outfile, level, namespaceprefix_, name_='inner', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -922,7 +922,7 @@ class classBType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='classBType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='classBType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('classBType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -933,25 +933,25 @@ class classBType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='classBType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='classBType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='classBType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='classBType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='classBType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='classBType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='classBType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='classBType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.inner is not None: - self.inner.export(outfile, level, namespace_, name_='inner', pretty_print=pretty_print) + self.inner.export(outfile, level, namespaceprefix_, name_='inner', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1003,7 +1003,7 @@ class innerType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='innerType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='innerType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('innerType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1014,23 +1014,23 @@ class innerType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='innerType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='innerType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='innerType', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='innerType', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='innerType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='innerType'): if self.attrA1 is not None and 'attrA1' not in already_processed: already_processed.add('attrA1') outfile.write(' attrA1=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.attrA1), input_name='attrA1')), )) if self.attrA2 is not None and 'attrA2' not in already_processed: already_processed.add('attrA2') outfile.write(' attrA2=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.attrA2), input_name='attrA2')), )) - def exportChildren(self, outfile, level, namespace_='', name_='innerType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='innerType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -1086,7 +1086,7 @@ class innerType1(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='innerType1', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='innerType1', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('innerType1') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1097,23 +1097,23 @@ class innerType1(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='innerType1') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='innerType1') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='innerType1', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='innerType1', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='innerType1'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='innerType1'): if self.attrB1 is not None and 'attrB1' not in already_processed: already_processed.add('attrB1') outfile.write(' attrB1=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.attrB1), input_name='attrB1')), )) if self.attrB2 is not None and 'attrB2' not in already_processed: already_processed.add('attrB2') outfile.write(' attrB2=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.attrB2), input_name='attrB2')), )) - def exportChildren(self, outfile, level, namespace_='', name_='innerType1', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='innerType1', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() diff --git a/tests/out1_sup.py b/tests/out1_sup.py index 12f1c21..0068b57 100644 --- a/tests/out1_sup.py +++ b/tests/out1_sup.py @@ -814,7 +814,7 @@ class people(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='people', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='people', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('people') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -825,33 +825,33 @@ class people(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='people') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='people') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='people', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='people', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='people'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='people'): pass - def exportChildren(self, outfile, level, namespace_='', name_='people', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='people', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for comments_ in self.comments: - comments_.export(outfile, level, namespace_, name_='comments', pretty_print=pretty_print) + comments_.export(outfile, level, namespaceprefix_, name_='comments', pretty_print=pretty_print) for person_ in self.person: - person_.export(outfile, level, namespace_, name_='person', pretty_print=pretty_print) + person_.export(outfile, level, namespaceprefix_, name_='person', pretty_print=pretty_print) for programmer_ in self.programmer: - programmer_.export(outfile, level, namespace_, name_='programmer', pretty_print=pretty_print) + programmer_.export(outfile, level, namespaceprefix_, name_='programmer', pretty_print=pretty_print) for python_programmer_ in self.python_programmer: - python_programmer_.export(outfile, level, namespace_, name_='python-programmer', pretty_print=pretty_print) + python_programmer_.export(outfile, level, namespaceprefix_, name_='python-programmer', pretty_print=pretty_print) for java_programmer_ in self.java_programmer: - java_programmer_.export(outfile, level, namespace_, name_='java-programmer', pretty_print=pretty_print) + java_programmer_.export(outfile, level, namespaceprefix_, name_='java-programmer', pretty_print=pretty_print) def exportLiteral(self, outfile, level, name_='people'): level += 1 already_processed = set() @@ -1061,7 +1061,7 @@ class comments(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='comments', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='comments', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('comments') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1072,22 +1072,22 @@ class comments(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='comments') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='comments') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='comments', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='comments', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='comments'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='comments'): pass - def exportChildren(self, outfile, level, namespace_='', name_='comments', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='comments', fromsubclass_=False, pretty_print=True): if not fromsubclass_: for item_ in self.content_: - item_.export(outfile, level, item_.name, namespace_, pretty_print=pretty_print) + item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1281,7 +1281,7 @@ class person(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='person', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='person', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('person') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1292,17 +1292,17 @@ class person(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='person') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='person') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='person', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='person', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='person'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='person'): if self.value is not None and 'value' not in already_processed: already_processed.add('value') outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), )) @@ -1322,7 +1322,7 @@ class person(GeneratedsSuper): already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) - def exportChildren(self, outfile, level, namespace_='', name_='person', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='person', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1337,9 +1337,9 @@ class person(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<category>%s</category>%s' % (self.gds_format_integer(self.category, input_name='category'), eol_)) for agent_ in self.agent: - agent_.export(outfile, level, namespace_, name_='agent', pretty_print=pretty_print) + agent_.export(outfile, level, namespaceprefix_, name_='agent', pretty_print=pretty_print) for promoter_ in self.promoter: - promoter_.export(outfile, level, namespace_, name_='promoter', pretty_print=pretty_print) + promoter_.export(outfile, level, namespaceprefix_, name_='promoter', pretty_print=pretty_print) if self.description is not None: showIndent(outfile, level, pretty_print) outfile.write('<description>%s</description>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.description), input_name='description')), eol_)) @@ -1665,7 +1665,7 @@ class programmer(person): return True else: return False - def export(self, outfile, level, namespace_='', name_='programmer', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='programmer', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('programmer') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1676,18 +1676,18 @@ class programmer(person): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='programmer') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='programmer') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='programmer', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='programmer', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='programmer'): - super(programmer, self).exportAttributes(outfile, level, already_processed, namespace_, name_='programmer') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='programmer'): + super(programmer, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='programmer') if self.language is not None and 'language' not in already_processed: already_processed.add('language') outfile.write(' language=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.language), input_name='language')), )) @@ -1710,8 +1710,8 @@ class programmer(person): already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) - def exportChildren(self, outfile, level, namespace_='', name_='programmer', fromsubclass_=False, pretty_print=True): - super(programmer, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='', name_='programmer', fromsubclass_=False, pretty_print=True): + super(programmer, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1747,7 +1747,7 @@ class programmer(person): showIndent(outfile, level, pretty_print) outfile.write('<ellong>%s</ellong>%s' % (self.gds_format_integer(self.ellong, input_name='ellong'), eol_)) if self.elparam is not None: - self.elparam.export(outfile, level, namespace_, name_='elparam', pretty_print=pretty_print) + self.elparam.export(outfile, level, namespaceprefix_, name_='elparam', pretty_print=pretty_print) if self.elarraytypes is not None: showIndent(outfile, level, pretty_print) outfile.write('<elarraytypes>%s</elarraytypes>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.elarraytypes), input_name='elarraytypes')), eol_)) @@ -2074,7 +2074,7 @@ class param(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='param', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='param', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('param') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2085,17 +2085,17 @@ class param(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='param') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='param') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='param', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='param', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='param'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='param'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) @@ -2114,7 +2114,7 @@ class param(GeneratedsSuper): if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), )) - def exportChildren(self, outfile, level, namespace_='', name_='param', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='param', fromsubclass_=False, pretty_print=True): pass def exportLiteral(self, outfile, level, name_='param'): level += 1 @@ -2271,7 +2271,7 @@ class python_programmer(programmer): return True else: return False - def export(self, outfile, level, namespace_='', name_='python-programmer', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='python-programmer', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('python-programmer') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2282,23 +2282,23 @@ class python_programmer(programmer): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='python-programmer') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='python-programmer') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='python-programmer', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='python-programmer', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='python-programmer'): - super(python_programmer, self).exportAttributes(outfile, level, already_processed, namespace_, name_='python-programmer') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='python-programmer'): + super(python_programmer, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='python-programmer') if self.nick_name is not None and 'nick_name' not in already_processed: already_processed.add('nick_name') outfile.write(' nick-name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.nick_name), input_name='nick-name')), )) - def exportChildren(self, outfile, level, namespace_='', name_='python-programmer', fromsubclass_=False, pretty_print=True): - super(python_programmer, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='', name_='python-programmer', fromsubclass_=False, pretty_print=True): + super(python_programmer, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -2430,7 +2430,7 @@ class java_programmer(programmer): return True else: return False - def export(self, outfile, level, namespace_='', name_='java-programmer', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='java-programmer', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('java-programmer') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2441,26 +2441,26 @@ class java_programmer(programmer): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='java-programmer') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='java-programmer') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='java-programmer', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='java-programmer', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='java-programmer'): - super(java_programmer, self).exportAttributes(outfile, level, already_processed, namespace_, name_='java-programmer') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='java-programmer'): + super(java_programmer, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='java-programmer') if self.nick_name is not None and 'nick_name' not in already_processed: already_processed.add('nick_name') outfile.write(' nick-name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.nick_name), input_name='nick-name')), )) if self.status is not None and 'status' not in already_processed: already_processed.add('status') outfile.write(' status=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.status), input_name='status')), )) - def exportChildren(self, outfile, level, namespace_='', name_='java-programmer', fromsubclass_=False, pretty_print=True): - super(java_programmer, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='', name_='java-programmer', fromsubclass_=False, pretty_print=True): + super(java_programmer, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -2605,7 +2605,7 @@ class agent(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='agent', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='agent', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('agent') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2616,19 +2616,19 @@ class agent(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='agent') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='agent') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='agent', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='agent', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='agent'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='agent'): pass - def exportChildren(self, outfile, level, namespace_='', name_='agent', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='agent', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2643,7 +2643,7 @@ class agent(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<priority>%s</priority>%s' % (self.gds_format_float(self.priority, input_name='priority'), eol_)) if self.info is not None: - self.info.export(outfile, level, namespace_, name_='info', pretty_print=pretty_print) + self.info.export(outfile, level, namespaceprefix_, name_='info', pretty_print=pretty_print) def exportLiteral(self, outfile, level, name_='agent'): level += 1 already_processed = set() @@ -2792,7 +2792,7 @@ class special_agent(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='special-agent', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='special-agent', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('special-agent') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2803,19 +2803,19 @@ class special_agent(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='special-agent') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='special-agent') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='special-agent', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='special-agent', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='special-agent'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='special-agent'): pass - def exportChildren(self, outfile, level, namespace_='', name_='special-agent', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='special-agent', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2830,7 +2830,7 @@ class special_agent(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<priority>%s</priority>%s' % (self.gds_format_float(self.priority, input_name='priority'), eol_)) if self.info is not None: - self.info.export(outfile, level, namespace_, name_='info', pretty_print=pretty_print) + self.info.export(outfile, level, namespaceprefix_, name_='info', pretty_print=pretty_print) def exportLiteral(self, outfile, level, name_='special-agent'): level += 1 already_processed = set() @@ -3012,7 +3012,7 @@ class booster(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='booster', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='booster', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('booster') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -3023,19 +3023,19 @@ class booster(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='booster') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='booster') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='booster', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='booster', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='booster'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='booster'): pass - def exportChildren(self, outfile, level, namespace_='', name_='booster', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='booster', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -3059,7 +3059,7 @@ class booster(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<type>%s</type>%s' % (self.gds_format_float(type_, input_name='type'), eol_)) for client_handler_ in self.client_handler: - client_handler_.export(outfile, level, namespace_, name_='client-handler', pretty_print=pretty_print) + client_handler_.export(outfile, level, namespaceprefix_, name_='client-handler', pretty_print=pretty_print) def exportLiteral(self, outfile, level, name_='booster'): level += 1 already_processed = set() @@ -3252,7 +3252,7 @@ class info(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='info', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='info', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('info') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -3263,16 +3263,16 @@ class info(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='info') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='info') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='info', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='info', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='info'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='info'): if self.name is not None and 'name' not in already_processed: already_processed.add('name') outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), )) @@ -3282,7 +3282,7 @@ class info(GeneratedsSuper): if self.rating is not None and 'rating' not in already_processed: already_processed.add('rating') outfile.write(' rating="%s"' % self.gds_format_float(self.rating, input_name='rating')) - def exportChildren(self, outfile, level, namespace_='', name_='info', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='info', fromsubclass_=False, pretty_print=True): pass def exportLiteral(self, outfile, level, name_='info'): level += 1 @@ -3416,7 +3416,7 @@ class client_handlerType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='client-handlerType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='client-handlerType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('client-handlerType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -3427,19 +3427,19 @@ class client_handlerType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='client-handlerType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='client-handlerType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='client-handlerType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='client-handlerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='client-handlerType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='client-handlerType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='client-handlerType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='client-handlerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/people_procincl1_sup.py b/tests/people_procincl1_sup.py index 2264fa3..55b08cc 100644 --- a/tests/people_procincl1_sup.py +++ b/tests/people_procincl1_sup.py @@ -826,7 +826,7 @@ class people(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='people', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='people', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('people') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -837,35 +837,35 @@ class people(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='people') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='people') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='people', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='people', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='people'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='people'): pass - def exportChildren(self, outfile, level, namespace_='', name_='people', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='people', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for comments_ in self.comments: - comments_.export(outfile, level, namespace_, name_='comments', pretty_print=pretty_print) + comments_.export(outfile, level, namespaceprefix_, name_='comments', pretty_print=pretty_print) for person_ in self.person: - person_.export(outfile, level, namespace_, name_='person', pretty_print=pretty_print) + person_.export(outfile, level, namespaceprefix_, name_='person', pretty_print=pretty_print) for specialperson_ in self.specialperson: - specialperson_.export(outfile, level, namespace_, name_='specialperson', pretty_print=pretty_print) + specialperson_.export(outfile, level, namespaceprefix_, name_='specialperson', pretty_print=pretty_print) for programmer_ in self.programmer: - programmer_.export(outfile, level, namespace_, name_='programmer', pretty_print=pretty_print) + programmer_.export(outfile, level, namespaceprefix_, name_='programmer', pretty_print=pretty_print) for python_programmer_ in self.python_programmer: - python_programmer_.export(outfile, level, namespace_, name_='python-programmer', pretty_print=pretty_print) + python_programmer_.export(outfile, level, namespaceprefix_, name_='python-programmer', pretty_print=pretty_print) for java_programmer_ in self.java_programmer: - java_programmer_.export(outfile, level, namespace_, name_='java-programmer', pretty_print=pretty_print) + java_programmer_.export(outfile, level, namespaceprefix_, name_='java-programmer', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -971,7 +971,7 @@ class comments(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='comments', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='comments', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('comments') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -982,22 +982,22 @@ class comments(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='comments') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='comments') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='comments', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='comments', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='comments'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='comments'): pass - def exportChildren(self, outfile, level, namespace_='', name_='comments', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='comments', fromsubclass_=False, pretty_print=True): if not fromsubclass_: for item_ in self.content_: - item_.export(outfile, level, item_.name, namespace_, pretty_print=pretty_print) + item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1138,7 +1138,7 @@ class person(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='person', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='person', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('person') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1149,17 +1149,17 @@ class person(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='person') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='person') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='person', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='person', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='person'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='person'): if self.value is not None and 'value' not in already_processed: already_processed.add('value') outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), )) @@ -1179,7 +1179,7 @@ class person(GeneratedsSuper): already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) - def exportChildren(self, outfile, level, namespace_='', name_='person', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='person', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1194,9 +1194,9 @@ class person(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<category>%s</category>%s' % (self.gds_format_integer(self.category, input_name='category'), eol_)) for agent_ in self.agent: - agent_.export(outfile, level, namespace_, name_='agent', pretty_print=pretty_print) + agent_.export(outfile, level, namespaceprefix_, name_='agent', pretty_print=pretty_print) for promoter_ in self.promoter: - promoter_.export(outfile, level, namespace_, name_='promoter', pretty_print=pretty_print) + promoter_.export(outfile, level, namespaceprefix_, name_='promoter', pretty_print=pretty_print) if self.description is not None: showIndent(outfile, level, pretty_print) outfile.write('<description>%s</description>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.description), input_name='description')), eol_)) @@ -1298,7 +1298,7 @@ class specialperson(person): return True else: return False - def export(self, outfile, level, namespace_='', name_='specialperson', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='specialperson', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('specialperson') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1309,20 +1309,20 @@ class specialperson(person): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='specialperson') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='specialperson') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='specialperson', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='specialperson', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='specialperson'): - super(specialperson, self).exportAttributes(outfile, level, already_processed, namespace_, name_='specialperson') - def exportChildren(self, outfile, level, namespace_='', name_='specialperson', fromsubclass_=False, pretty_print=True): - super(specialperson, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='specialperson'): + super(specialperson, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='specialperson') + def exportChildren(self, outfile, level, namespaceprefix_='', name_='specialperson', fromsubclass_=False, pretty_print=True): + super(specialperson, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1393,7 +1393,7 @@ class param(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='param', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='param', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('param') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1404,17 +1404,17 @@ class param(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='param') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='param') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='param', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='param', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='param'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='param'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) @@ -1433,7 +1433,7 @@ class param(GeneratedsSuper): if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), )) - def exportChildren(self, outfile, level, namespace_='', name_='param', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='param', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -1529,7 +1529,7 @@ class agent(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='agent', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='agent', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('agent') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1540,19 +1540,19 @@ class agent(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='agent') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='agent') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='agent', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='agent', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='agent'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='agent'): pass - def exportChildren(self, outfile, level, namespace_='', name_='agent', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='agent', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1567,9 +1567,9 @@ class agent(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<priority>%s</priority>%s' % (self.gds_format_float(self.priority, input_name='priority'), eol_)) if self.info is not None: - self.info.export(outfile, level, namespace_, name_='info', pretty_print=pretty_print) + self.info.export(outfile, level, namespaceprefix_, name_='info', pretty_print=pretty_print) for vehicle_ in self.vehicle: - vehicle_.export(outfile, level, namespace_, pretty_print=pretty_print) + vehicle_.export(outfile, level, namespaceprefix_, pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1669,7 +1669,7 @@ class special_agent(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='special-agent', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='special-agent', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('special-agent') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1680,19 +1680,19 @@ class special_agent(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='special-agent') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='special-agent') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='special-agent', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='special-agent', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='special-agent'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='special-agent'): pass - def exportChildren(self, outfile, level, namespace_='', name_='special-agent', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='special-agent', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1707,7 +1707,7 @@ class special_agent(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<priority>%s</priority>%s' % (self.gds_format_float(self.priority, input_name='priority'), eol_)) if self.info is not None: - self.info.export(outfile, level, namespace_, name_='info', pretty_print=pretty_print) + self.info.export(outfile, level, namespaceprefix_, name_='info', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1823,7 +1823,7 @@ class booster(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='booster', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='booster', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('booster') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1834,21 +1834,21 @@ class booster(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='booster') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='booster') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='booster', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='booster', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='booster'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='booster'): if self.member_id is not None and 'member_id' not in already_processed: already_processed.add('member_id') outfile.write(' member-id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.member_id), input_name='member-id')), )) - def exportChildren(self, outfile, level, namespace_='', name_='booster', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='booster', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1872,7 +1872,7 @@ class booster(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<type>%s</type>%s' % (self.gds_format_float(type_, input_name='type'), eol_)) for client_handler_ in self.client_handler: - client_handler_.export(outfile, level, namespace_, name_='client-handler', pretty_print=pretty_print) + client_handler_.export(outfile, level, namespaceprefix_, name_='client-handler', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1971,7 +1971,7 @@ class info(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='info', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='info', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('info') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1982,16 +1982,16 @@ class info(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='info') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='info') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='info', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='info', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='info'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='info'): if self.name is not None and 'name' not in already_processed: already_processed.add('name') outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), )) @@ -2001,7 +2001,7 @@ class info(GeneratedsSuper): if self.rating is not None and 'rating' not in already_processed: already_processed.add('rating') outfile.write(' rating="%s"' % self.gds_format_float(self.rating, input_name='rating')) - def exportChildren(self, outfile, level, namespace_='', name_='info', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='info', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -2066,7 +2066,7 @@ class vehicle(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='vehicle', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='vehicle', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('vehicle') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2077,23 +2077,23 @@ class vehicle(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='vehicle') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='vehicle') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='vehicle', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='vehicle', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='vehicle'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='vehicle'): if self.extensiontype_ is not None and 'xsi:type' not in already_processed: already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) pass - def exportChildren(self, outfile, level, namespace_='', name_='vehicle', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='vehicle', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2156,7 +2156,7 @@ class automobile(vehicle): return True else: return False - def export(self, outfile, level, namespace_='', name_='automobile', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='automobile', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('automobile') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2167,20 +2167,20 @@ class automobile(vehicle): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='automobile') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='automobile') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='automobile', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='automobile', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='automobile'): - super(automobile, self).exportAttributes(outfile, level, already_processed, namespace_, name_='automobile') - def exportChildren(self, outfile, level, namespace_='', name_='automobile', fromsubclass_=False, pretty_print=True): - super(automobile, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='automobile'): + super(automobile, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='automobile') + def exportChildren(self, outfile, level, namespaceprefix_='', name_='automobile', fromsubclass_=False, pretty_print=True): + super(automobile, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -2237,7 +2237,7 @@ class airplane(vehicle): return True else: return False - def export(self, outfile, level, namespace_='', name_='airplane', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='airplane', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('airplane') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2248,20 +2248,20 @@ class airplane(vehicle): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='airplane') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='airplane') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='airplane', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='airplane', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='airplane'): - super(airplane, self).exportAttributes(outfile, level, already_processed, namespace_, name_='airplane') - def exportChildren(self, outfile, level, namespace_='', name_='airplane', fromsubclass_=False, pretty_print=True): - super(airplane, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='airplane'): + super(airplane, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='airplane') + def exportChildren(self, outfile, level, namespaceprefix_='', name_='airplane', fromsubclass_=False, pretty_print=True): + super(airplane, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -2414,7 +2414,7 @@ class programmer(person): return True else: return False - def export(self, outfile, level, namespace_='', name_='programmer', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='programmer', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('programmer') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2425,18 +2425,18 @@ class programmer(person): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='programmer') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='programmer') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='programmer', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='programmer', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='programmer'): - super(programmer, self).exportAttributes(outfile, level, already_processed, namespace_, name_='programmer') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='programmer'): + super(programmer, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='programmer') if self.language is not None and 'language' not in already_processed: already_processed.add('language') outfile.write(' language=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.language), input_name='language')), )) @@ -2459,8 +2459,8 @@ class programmer(person): already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) - def exportChildren(self, outfile, level, namespace_='', name_='programmer', fromsubclass_=False, pretty_print=True): - super(programmer, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='', name_='programmer', fromsubclass_=False, pretty_print=True): + super(programmer, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -2493,7 +2493,7 @@ class programmer(person): showIndent(outfile, level, pretty_print) outfile.write('<ellong>%s</ellong>%s' % (self.gds_format_integer(self.ellong, input_name='ellong'), eol_)) if self.elparam is not None: - self.elparam.export(outfile, level, namespace_, name_='elparam', pretty_print=pretty_print) + self.elparam.export(outfile, level, namespaceprefix_, name_='elparam', pretty_print=pretty_print) if self.elarraytypes is not None: showIndent(outfile, level, pretty_print) outfile.write('<elarraytypes>%s</elarraytypes>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.elarraytypes), input_name='elarraytypes')), eol_)) @@ -2676,7 +2676,7 @@ class client_handlerType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='client-handlerType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='client-handlerType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('client-handlerType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2687,19 +2687,19 @@ class client_handlerType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='client-handlerType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='client-handlerType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='client-handlerType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='client-handlerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='client-handlerType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='client-handlerType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='client-handlerType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='client-handlerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2777,7 +2777,7 @@ class java_programmer(programmer): return True else: return False - def export(self, outfile, level, namespace_='', name_='java-programmer', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='java-programmer', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('java-programmer') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2788,26 +2788,26 @@ class java_programmer(programmer): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='java-programmer') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='java-programmer') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='java-programmer', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='java-programmer', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='java-programmer'): - super(java_programmer, self).exportAttributes(outfile, level, already_processed, namespace_, name_='java-programmer') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='java-programmer'): + super(java_programmer, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='java-programmer') if self.nick_name is not None and 'nick_name' not in already_processed: already_processed.add('nick_name') outfile.write(' nick-name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.nick_name), input_name='nick-name')), )) if self.status is not None and 'status' not in already_processed: already_processed.add('status') outfile.write(' status=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.status), input_name='status')), )) - def exportChildren(self, outfile, level, namespace_='', name_='java-programmer', fromsubclass_=False, pretty_print=True): - super(java_programmer, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='', name_='java-programmer', fromsubclass_=False, pretty_print=True): + super(java_programmer, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -2878,7 +2878,7 @@ class python_programmer(programmer): return True else: return False - def export(self, outfile, level, namespace_='', name_='python-programmer', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='python-programmer', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('python-programmer') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2889,23 +2889,23 @@ class python_programmer(programmer): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='python-programmer') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='python-programmer') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='python-programmer', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='python-programmer', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='python-programmer'): - super(python_programmer, self).exportAttributes(outfile, level, already_processed, namespace_, name_='python-programmer') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='python-programmer'): + super(python_programmer, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='python-programmer') if self.nick_name is not None and 'nick_name' not in already_processed: already_processed.add('nick_name') outfile.write(' nick-name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.nick_name), input_name='nick-name')), )) - def exportChildren(self, outfile, level, namespace_='', name_='python-programmer', fromsubclass_=False, pretty_print=True): - super(python_programmer, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='', name_='python-programmer', fromsubclass_=False, pretty_print=True): + super(python_programmer, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: diff --git a/tests/prefix_classname1_sup.py b/tests/prefix_classname1_sup.py index ccaed97..67187ca 100644 --- a/tests/prefix_classname1_sup.py +++ b/tests/prefix_classname1_sup.py @@ -814,7 +814,7 @@ class tomato_people(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='people', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='people', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('people') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -825,33 +825,33 @@ class tomato_people(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='people') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='people') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='people', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='people', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='people'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='people'): pass - def exportChildren(self, outfile, level, namespace_='', name_='people', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='people', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for comments_ in self.comments: - comments_.export(outfile, level, namespace_, name_='comments', pretty_print=pretty_print) + comments_.export(outfile, level, namespaceprefix_, name_='comments', pretty_print=pretty_print) for person_ in self.person: - person_.export(outfile, level, namespace_, name_='person', pretty_print=pretty_print) + person_.export(outfile, level, namespaceprefix_, name_='person', pretty_print=pretty_print) for programmer_ in self.programmer: - programmer_.export(outfile, level, namespace_, name_='programmer', pretty_print=pretty_print) + programmer_.export(outfile, level, namespaceprefix_, name_='programmer', pretty_print=pretty_print) for python_programmer_ in self.python_programmer: - python_programmer_.export(outfile, level, namespace_, name_='python-programmer', pretty_print=pretty_print) + python_programmer_.export(outfile, level, namespaceprefix_, name_='python-programmer', pretty_print=pretty_print) for java_programmer_ in self.java_programmer: - java_programmer_.export(outfile, level, namespace_, name_='java-programmer', pretty_print=pretty_print) + java_programmer_.export(outfile, level, namespaceprefix_, name_='java-programmer', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -941,7 +941,7 @@ class tomato_comments(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='comments', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='comments', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('comments') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -952,22 +952,22 @@ class tomato_comments(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='comments') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='comments') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='comments', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='comments', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='comments'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='comments'): pass - def exportChildren(self, outfile, level, namespace_='', name_='comments', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='comments', fromsubclass_=False, pretty_print=True): if not fromsubclass_: for item_ in self.content_: - item_.export(outfile, level, item_.name, namespace_, pretty_print=pretty_print) + item_.export(outfile, level, item_.name, namespaceprefix_, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1097,7 +1097,7 @@ class tomato_person(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='person', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='person', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('person') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1108,17 +1108,17 @@ class tomato_person(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='person') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='person') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='person', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='person', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='person'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='person'): if self.value is not None and 'value' not in already_processed: already_processed.add('value') outfile.write(' value=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.value), input_name='value')), )) @@ -1138,7 +1138,7 @@ class tomato_person(GeneratedsSuper): already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) - def exportChildren(self, outfile, level, namespace_='', name_='person', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='person', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1153,9 +1153,9 @@ class tomato_person(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<category>%s</category>%s' % (self.gds_format_integer(self.category, input_name='category'), eol_)) for agent_ in self.agent: - agent_.export(outfile, level, namespace_, name_='agent', pretty_print=pretty_print) + agent_.export(outfile, level, namespaceprefix_, name_='agent', pretty_print=pretty_print) for promoter_ in self.promoter: - promoter_.export(outfile, level, namespace_, name_='promoter', pretty_print=pretty_print) + promoter_.export(outfile, level, namespaceprefix_, name_='promoter', pretty_print=pretty_print) if self.description is not None: showIndent(outfile, level, pretty_print) outfile.write('<description>%s</description>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.description), input_name='description')), eol_)) @@ -1365,7 +1365,7 @@ class tomato_programmer(tomato_person): return True else: return False - def export(self, outfile, level, namespace_='', name_='programmer', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='programmer', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('programmer') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1376,18 +1376,18 @@ class tomato_programmer(tomato_person): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='programmer') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='programmer') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='programmer', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='programmer', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='programmer'): - super(tomato_programmer, self).exportAttributes(outfile, level, already_processed, namespace_, name_='programmer') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='programmer'): + super(tomato_programmer, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='programmer') if self.language is not None and 'language' not in already_processed: already_processed.add('language') outfile.write(' language=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.language), input_name='language')), )) @@ -1410,8 +1410,8 @@ class tomato_programmer(tomato_person): already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) - def exportChildren(self, outfile, level, namespace_='', name_='programmer', fromsubclass_=False, pretty_print=True): - super(tomato_programmer, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='', name_='programmer', fromsubclass_=False, pretty_print=True): + super(tomato_programmer, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1447,7 +1447,7 @@ class tomato_programmer(tomato_person): showIndent(outfile, level, pretty_print) outfile.write('<ellong>%s</ellong>%s' % (self.gds_format_integer(self.ellong, input_name='ellong'), eol_)) if self.elparam is not None: - self.elparam.export(outfile, level, namespace_, name_='elparam', pretty_print=pretty_print) + self.elparam.export(outfile, level, namespaceprefix_, name_='elparam', pretty_print=pretty_print) if self.elarraytypes is not None: showIndent(outfile, level, pretty_print) outfile.write('<elarraytypes>%s</elarraytypes>%s' % (self.gds_encode(self.gds_format_string(quote_xml(self.elarraytypes), input_name='elarraytypes')), eol_)) @@ -1655,7 +1655,7 @@ class tomato_param(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='param', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='param', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('param') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1666,17 +1666,17 @@ class tomato_param(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='param') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='param') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='param', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='param', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='param'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='param'): if self.id is not None and 'id' not in already_processed: already_processed.add('id') outfile.write(' id=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.id), input_name='id')), )) @@ -1695,7 +1695,7 @@ class tomato_param(GeneratedsSuper): if self.type_ is not None and 'type_' not in already_processed: already_processed.add('type_') outfile.write(' type=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.type_), input_name='type')), )) - def exportChildren(self, outfile, level, namespace_='', name_='param', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='param', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -1771,7 +1771,7 @@ class tomato_python_programmer(tomato_programmer): return True else: return False - def export(self, outfile, level, namespace_='', name_='python-programmer', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='python-programmer', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('python-programmer') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1782,23 +1782,23 @@ class tomato_python_programmer(tomato_programmer): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='python-programmer') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='python-programmer') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='python-programmer', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='python-programmer', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='python-programmer'): - super(tomato_python_programmer, self).exportAttributes(outfile, level, already_processed, namespace_, name_='python-programmer') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='python-programmer'): + super(tomato_python_programmer, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='python-programmer') if self.nick_name is not None and 'nick_name' not in already_processed: already_processed.add('nick_name') outfile.write(' nick-name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.nick_name), input_name='nick-name')), )) - def exportChildren(self, outfile, level, namespace_='', name_='python-programmer', fromsubclass_=False, pretty_print=True): - super(tomato_python_programmer, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='', name_='python-programmer', fromsubclass_=False, pretty_print=True): + super(tomato_python_programmer, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1867,7 +1867,7 @@ class tomato_java_programmer(tomato_programmer): return True else: return False - def export(self, outfile, level, namespace_='', name_='java-programmer', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='java-programmer', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('java-programmer') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1878,26 +1878,26 @@ class tomato_java_programmer(tomato_programmer): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='java-programmer') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='java-programmer') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='java-programmer', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='java-programmer', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='java-programmer'): - super(tomato_java_programmer, self).exportAttributes(outfile, level, already_processed, namespace_, name_='java-programmer') + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='java-programmer'): + super(tomato_java_programmer, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='java-programmer') if self.nick_name is not None and 'nick_name' not in already_processed: already_processed.add('nick_name') outfile.write(' nick-name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.nick_name), input_name='nick-name')), )) if self.status is not None and 'status' not in already_processed: already_processed.add('status') outfile.write(' status=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.status), input_name='status')), )) - def exportChildren(self, outfile, level, namespace_='', name_='java-programmer', fromsubclass_=False, pretty_print=True): - super(tomato_java_programmer, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportChildren(self, outfile, level, namespaceprefix_='', name_='java-programmer', fromsubclass_=False, pretty_print=True): + super(tomato_java_programmer, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) if pretty_print: eol_ = '\n' else: @@ -1975,7 +1975,7 @@ class tomato_agent(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='agent', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='agent', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('agent') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1986,19 +1986,19 @@ class tomato_agent(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='agent') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='agent') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='agent', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='agent', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='agent'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='agent'): pass - def exportChildren(self, outfile, level, namespace_='', name_='agent', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='agent', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2013,7 +2013,7 @@ class tomato_agent(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<priority>%s</priority>%s' % (self.gds_format_float(self.priority, input_name='priority'), eol_)) if self.info is not None: - self.info.export(outfile, level, namespace_, name_='info', pretty_print=pretty_print) + self.info.export(outfile, level, namespaceprefix_, name_='info', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -2092,7 +2092,7 @@ class tomato_special_agent(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='special-agent', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='special-agent', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('special-agent') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2103,19 +2103,19 @@ class tomato_special_agent(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='special-agent') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='special-agent') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='special-agent', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='special-agent', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='special-agent'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='special-agent'): pass - def exportChildren(self, outfile, level, namespace_='', name_='special-agent', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='special-agent', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2130,7 +2130,7 @@ class tomato_special_agent(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<priority>%s</priority>%s' % (self.gds_format_float(self.priority, input_name='priority'), eol_)) if self.info is not None: - self.info.export(outfile, level, namespace_, name_='info', pretty_print=pretty_print) + self.info.export(outfile, level, namespaceprefix_, name_='info', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -2242,7 +2242,7 @@ class tomato_booster(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='booster', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='booster', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('booster') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2253,19 +2253,19 @@ class tomato_booster(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='booster') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='booster') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='booster', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='booster', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='booster'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='booster'): pass - def exportChildren(self, outfile, level, namespace_='', name_='booster', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='booster', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -2289,7 +2289,7 @@ class tomato_booster(GeneratedsSuper): showIndent(outfile, level, pretty_print) outfile.write('<type>%s</type>%s' % (self.gds_format_float(type_, input_name='type'), eol_)) for client_handler_ in self.client_handler: - client_handler_.export(outfile, level, namespace_, name_='client-handler', pretty_print=pretty_print) + client_handler_.export(outfile, level, namespaceprefix_, name_='client-handler', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -2385,7 +2385,7 @@ class tomato_info(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='info', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='info', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('info') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2396,16 +2396,16 @@ class tomato_info(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='info') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='info') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='info', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='info', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='info'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='info'): if self.name is not None and 'name' not in already_processed: already_processed.add('name') outfile.write(' name=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.name), input_name='name')), )) @@ -2415,7 +2415,7 @@ class tomato_info(GeneratedsSuper): if self.rating is not None and 'rating' not in already_processed: already_processed.add('rating') outfile.write(' rating="%s"' % self.gds_format_float(self.rating, input_name='rating')) - def exportChildren(self, outfile, level, namespace_='', name_='info', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='info', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -2482,7 +2482,7 @@ class tomato_client_handlerType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='client-handlerType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='client-handlerType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('client-handlerType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -2493,19 +2493,19 @@ class tomato_client_handlerType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='client-handlerType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='client-handlerType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='client-handlerType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='client-handlerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='client-handlerType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='client-handlerType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='client-handlerType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='client-handlerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/recursive_simpletype1_sup.py b/tests/recursive_simpletype1_sup.py index 850c8c3..f30cf0c 100644 --- a/tests/recursive_simpletype1_sup.py +++ b/tests/recursive_simpletype1_sup.py @@ -767,7 +767,7 @@ class PersonType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='PersonType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='PersonType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('PersonType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -778,19 +778,19 @@ class PersonType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='PersonType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='PersonType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='PersonType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='PersonType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='PersonType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='PersonType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='PersonType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='PersonType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/reference_simpletype1_sup.py b/tests/reference_simpletype1_sup.py index 9b1015f..72b5bd5 100644 --- a/tests/reference_simpletype1_sup.py +++ b/tests/reference_simpletype1_sup.py @@ -771,7 +771,7 @@ class dummy(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='dummy', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='dummy', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('dummy') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -782,24 +782,24 @@ class dummy(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='dummy') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='dummy') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='dummy', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='dummy', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='dummy'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='dummy'): if self.test_ref_attr is not None and 'test_ref_attr' not in already_processed: already_processed.add('test_ref_attr') outfile.write(' test_ref_attr="%s"' % self.gds_format_integer(self.test_ref_attr, input_name='test_ref_attr')) if self.test_normal_attr is not None and 'test_normal_attr' not in already_processed: already_processed.add('test_normal_attr') outfile.write(' test_normal_attr="%s"' % self.gds_format_integer(self.test_normal_attr, input_name='test_normal_attr')) - def exportChildren(self, outfile, level, namespace_='', name_='dummy', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='dummy', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/rem_dup_elems1_sup.py b/tests/rem_dup_elems1_sup.py index 8945e59..7de66a2 100644 --- a/tests/rem_dup_elems1_sup.py +++ b/tests/rem_dup_elems1_sup.py @@ -775,7 +775,7 @@ class authorsType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='authorsType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='authorsType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('authorsType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -786,25 +786,25 @@ class authorsType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='authorsType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='authorsType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='authorsType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='authorsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='authorsType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='authorsType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='authorsType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='authorsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for author_ in self.author: - author_.export(outfile, level, namespace_, name_='author', pretty_print=pretty_print) + author_.export(outfile, level, namespaceprefix_, name_='author', pretty_print=pretty_print) for cooperation_ in self.cooperation: showIndent(outfile, level, pretty_print) outfile.write('<cooperation>%s</cooperation>%s' % (self.gds_encode(self.gds_format_string(quote_xml(cooperation_), input_name='cooperation')), eol_)) @@ -859,7 +859,7 @@ class author(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='author', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='author', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('author') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -870,19 +870,19 @@ class author(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='author') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='author') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='author', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='author', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='author'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='author'): pass - def exportChildren(self, outfile, level, namespace_='', name_='author', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='author', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/simplecontent_restriction1_sup.py b/tests/simplecontent_restriction1_sup.py index 895aa6e..c413af8 100644 --- a/tests/simplecontent_restriction1_sup.py +++ b/tests/simplecontent_restriction1_sup.py @@ -788,7 +788,7 @@ class IdentifierType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='IdentifierType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='IdentifierType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('IdentifierType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -799,17 +799,17 @@ class IdentifierType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='IdentifierType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='IdentifierType') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='IdentifierType', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='IdentifierType', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='IdentifierType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='IdentifierType'): if self.schemeID is not None and 'schemeID' not in already_processed: already_processed.add('schemeID') outfile.write(' schemeID=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.schemeID), input_name='schemeID')), )) @@ -835,7 +835,7 @@ class IdentifierType(GeneratedsSuper): already_processed.add('xsi:type') outfile.write(' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"') outfile.write(' xsi:type="%s"' % self.extensiontype_) - def exportChildren(self, outfile, level, namespace_='', name_='IdentifierType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='IdentifierType', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -914,7 +914,7 @@ class BillOfResourcesIDType(IdentifierType): return True else: return False - def export(self, outfile, level, namespace_='', name_='BillOfResourcesIDType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='BillOfResourcesIDType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('BillOfResourcesIDType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -925,20 +925,20 @@ class BillOfResourcesIDType(IdentifierType): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='BillOfResourcesIDType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillOfResourcesIDType') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='BillOfResourcesIDType', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='BillOfResourcesIDType', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='BillOfResourcesIDType'): - super(BillOfResourcesIDType, self).exportAttributes(outfile, level, already_processed, namespace_, name_='BillOfResourcesIDType') - def exportChildren(self, outfile, level, namespace_='', name_='BillOfResourcesIDType', fromsubclass_=False, pretty_print=True): - super(BillOfResourcesIDType, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillOfResourcesIDType'): + super(BillOfResourcesIDType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillOfResourcesIDType') + def exportChildren(self, outfile, level, namespaceprefix_='', name_='BillOfResourcesIDType', fromsubclass_=False, pretty_print=True): + super(BillOfResourcesIDType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) pass def build(self, node): already_processed = set() @@ -986,7 +986,7 @@ class BillOfMaterialIDType(IdentifierType): return True else: return False - def export(self, outfile, level, namespace_='', name_='BillOfMaterialIDType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='BillOfMaterialIDType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('BillOfMaterialIDType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -997,20 +997,20 @@ class BillOfMaterialIDType(IdentifierType): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='BillOfMaterialIDType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillOfMaterialIDType') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='', name_='BillOfMaterialIDType', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='BillOfMaterialIDType', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='BillOfMaterialIDType'): - super(BillOfMaterialIDType, self).exportAttributes(outfile, level, already_processed, namespace_, name_='BillOfMaterialIDType') - def exportChildren(self, outfile, level, namespace_='', name_='BillOfMaterialIDType', fromsubclass_=False, pretty_print=True): - super(BillOfMaterialIDType, self).exportChildren(outfile, level, namespace_, name_, True, pretty_print=pretty_print) + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='BillOfMaterialIDType'): + super(BillOfMaterialIDType, self).exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='BillOfMaterialIDType') + def exportChildren(self, outfile, level, namespaceprefix_='', name_='BillOfMaterialIDType', fromsubclass_=False, pretty_print=True): + super(BillOfMaterialIDType, self).exportChildren(outfile, level, namespaceprefix_, name_, True, pretty_print=pretty_print) pass def build(self, node): already_processed = set() diff --git a/tests/simpletype_memberspecs1_sup.py b/tests/simpletype_memberspecs1_sup.py index b1d7ed3..2f5acbe 100644 --- a/tests/simpletype_memberspecs1_sup.py +++ b/tests/simpletype_memberspecs1_sup.py @@ -776,7 +776,7 @@ class SpecialDate(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='pl:', name_='SpecialDate', namespacedef_='xmlns:pl="http://kuhlman.com/people.xsd"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='pl:', name_='SpecialDate', namespacedef_='xmlns:pl="http://kuhlman.com/people.xsd"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('SpecialDate') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -787,21 +787,21 @@ class SpecialDate(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='SpecialDate') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='SpecialDate') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='pl:', name_='SpecialDate', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='pl:', name_='SpecialDate', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='pl:', name_='SpecialDate'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pl:', name_='SpecialDate'): if self.SpecialProperty is not None and 'SpecialProperty' not in already_processed: already_processed.add('SpecialProperty') outfile.write(' SpecialProperty=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.SpecialProperty), input_name='SpecialProperty')), )) - def exportChildren(self, outfile, level, namespace_='pl:', name_='SpecialDate', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='pl:', name_='SpecialDate', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() @@ -854,7 +854,7 @@ class ExtremeDate(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='pl:', name_='ExtremeDate', namespacedef_='xmlns:pl="http://kuhlman.com/people.xsd"', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='pl:', name_='ExtremeDate', namespacedef_='xmlns:pl="http://kuhlman.com/people.xsd"', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('ExtremeDate') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -865,21 +865,21 @@ class ExtremeDate(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='ExtremeDate') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='ExtremeDate') if self.hasContent_(): outfile.write('>') outfile.write(self.convert_unicode(self.valueOf_)) - self.exportChildren(outfile, level + 1, namespace_='pl:', name_='ExtremeDate', pretty_print=pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + self.exportChildren(outfile, level + 1, namespaceprefix_='pl:', name_='ExtremeDate', pretty_print=pretty_print) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='pl:', name_='ExtremeDate'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='pl:', name_='ExtremeDate'): if self.ExtremeProperty is not None and 'ExtremeProperty' not in already_processed: already_processed.add('ExtremeProperty') outfile.write(' ExtremeProperty=%s' % (self.gds_encode(self.gds_format_string(quote_attrib(self.ExtremeProperty), input_name='ExtremeProperty')), )) - def exportChildren(self, outfile, level, namespace_='pl:', name_='ExtremeDate', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='pl:', name_='ExtremeDate', fromsubclass_=False, pretty_print=True): pass def build(self, node): already_processed = set() diff --git a/tests/simpletypes_other1_sup.py b/tests/simpletypes_other1_sup.py index 1a9c411..df679f8 100644 --- a/tests/simpletypes_other1_sup.py +++ b/tests/simpletypes_other1_sup.py @@ -763,7 +763,7 @@ class simpleTypeTestsType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='simpleTypeTestsType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='simpleTypeTestsType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('simpleTypeTestsType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -774,25 +774,25 @@ class simpleTypeTestsType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='simpleTypeTestsType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='simpleTypeTestsType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='simpleTypeTestsType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='simpleTypeTestsType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simpleTypeTestsType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='simpleTypeTestsType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='simpleTypeTestsType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='simpleTypeTestsType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for simpleTypeTest_ in self.simpleTypeTest: - simpleTypeTest_.export(outfile, level, namespace_, name_='simpleTypeTest', pretty_print=pretty_print) + simpleTypeTest_.export(outfile, level, namespaceprefix_, name_='simpleTypeTest', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -996,7 +996,7 @@ class simpleTypeTestDefs(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='simpleTypeTestDefs', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='simpleTypeTestDefs', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('simpleTypeTestDefs') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1007,19 +1007,19 @@ class simpleTypeTestDefs(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='simpleTypeTestDefs') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='simpleTypeTestDefs') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='simpleTypeTestDefs', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='simpleTypeTestDefs', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simpleTypeTestDefs'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='simpleTypeTestDefs'): pass - def exportChildren(self, outfile, level, namespace_='', name_='simpleTypeTestDefs', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='simpleTypeTestDefs', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/validate_simpletypes1_sup.py b/tests/validate_simpletypes1_sup.py index 98d98e8..95122b1 100644 --- a/tests/validate_simpletypes1_sup.py +++ b/tests/validate_simpletypes1_sup.py @@ -814,7 +814,7 @@ class containerType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='containerType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='containerType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('containerType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -825,33 +825,33 @@ class containerType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='containerType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='containerType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='containerType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='containerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='containerType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='containerType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='containerType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='containerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for sample1_ in self.sample1: - sample1_.export(outfile, level, namespace_, name_='sample1', pretty_print=pretty_print) + sample1_.export(outfile, level, namespaceprefix_, name_='sample1', pretty_print=pretty_print) for sample2_bad_ in self.sample2_bad: - sample2_bad_.export(outfile, level, namespace_, name_='sample2_bad', pretty_print=pretty_print) + sample2_bad_.export(outfile, level, namespaceprefix_, name_='sample2_bad', pretty_print=pretty_print) for sample3_bad_ in self.sample3_bad: - sample3_bad_.export(outfile, level, namespace_, name_='sample3_bad', pretty_print=pretty_print) + sample3_bad_.export(outfile, level, namespaceprefix_, name_='sample3_bad', pretty_print=pretty_print) for sample4_bad_ in self.sample4_bad: - sample4_bad_.export(outfile, level, namespace_, name_='sample4_bad', pretty_print=pretty_print) + sample4_bad_.export(outfile, level, namespaceprefix_, name_='sample4_bad', pretty_print=pretty_print) for sample2_ in self.sample2: - sample2_.export(outfile, level, namespace_, name_='sample2', pretty_print=pretty_print) + sample2_.export(outfile, level, namespaceprefix_, name_='sample2', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1242,7 +1242,7 @@ class simpleOneType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='simpleOneType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='simpleOneType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('simpleOneType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1253,21 +1253,21 @@ class simpleOneType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='simpleOneType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='simpleOneType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='simpleOneType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='simpleOneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simpleOneType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='simpleOneType'): if self.integer_range_1_value_with_default != "6" and 'integer_range_1_value_with_default' not in already_processed: already_processed.add('integer_range_1_value_with_default') outfile.write(' integer_range_1_value_with_default=%s' % (quote_attrib(self.integer_range_1_value_with_default), )) - def exportChildren(self, outfile, level, namespace_='', name_='simpleOneType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='simpleOneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1567,7 +1567,7 @@ class simpleTwoType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='simpleTwoType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='simpleTwoType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('simpleTwoType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1578,25 +1578,25 @@ class simpleTwoType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='simpleTwoType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='simpleTwoType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='simpleTwoType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='simpleTwoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simpleTwoType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='simpleTwoType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='simpleTwoType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='simpleTwoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.simpleTwoElementOne is not None: - self.simpleTwoElementOne.export(outfile, level, namespace_, name_='simpleTwoElementOne', pretty_print=pretty_print) + self.simpleTwoElementOne.export(outfile, level, namespaceprefix_, name_='simpleTwoElementOne', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1652,7 +1652,7 @@ class simpleTwoElementOneType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='simpleTwoElementOneType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='simpleTwoElementOneType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('simpleTwoElementOneType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1663,19 +1663,19 @@ class simpleTwoElementOneType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='simpleTwoElementOneType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='simpleTwoElementOneType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='simpleTwoElementOneType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='simpleTwoElementOneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simpleTwoElementOneType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='simpleTwoElementOneType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='simpleTwoElementOneType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='simpleTwoElementOneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tests/validate_simpletypes2_sup.py b/tests/validate_simpletypes2_sup.py index 98d98e8..95122b1 100644 --- a/tests/validate_simpletypes2_sup.py +++ b/tests/validate_simpletypes2_sup.py @@ -814,7 +814,7 @@ class containerType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='containerType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='containerType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('containerType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -825,33 +825,33 @@ class containerType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='containerType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='containerType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='containerType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='containerType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='containerType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='containerType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='containerType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='containerType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' for sample1_ in self.sample1: - sample1_.export(outfile, level, namespace_, name_='sample1', pretty_print=pretty_print) + sample1_.export(outfile, level, namespaceprefix_, name_='sample1', pretty_print=pretty_print) for sample2_bad_ in self.sample2_bad: - sample2_bad_.export(outfile, level, namespace_, name_='sample2_bad', pretty_print=pretty_print) + sample2_bad_.export(outfile, level, namespaceprefix_, name_='sample2_bad', pretty_print=pretty_print) for sample3_bad_ in self.sample3_bad: - sample3_bad_.export(outfile, level, namespace_, name_='sample3_bad', pretty_print=pretty_print) + sample3_bad_.export(outfile, level, namespaceprefix_, name_='sample3_bad', pretty_print=pretty_print) for sample4_bad_ in self.sample4_bad: - sample4_bad_.export(outfile, level, namespace_, name_='sample4_bad', pretty_print=pretty_print) + sample4_bad_.export(outfile, level, namespaceprefix_, name_='sample4_bad', pretty_print=pretty_print) for sample2_ in self.sample2: - sample2_.export(outfile, level, namespace_, name_='sample2', pretty_print=pretty_print) + sample2_.export(outfile, level, namespaceprefix_, name_='sample2', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1242,7 +1242,7 @@ class simpleOneType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='simpleOneType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='simpleOneType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('simpleOneType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1253,21 +1253,21 @@ class simpleOneType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='simpleOneType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='simpleOneType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='simpleOneType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='simpleOneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simpleOneType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='simpleOneType'): if self.integer_range_1_value_with_default != "6" and 'integer_range_1_value_with_default' not in already_processed: already_processed.add('integer_range_1_value_with_default') outfile.write(' integer_range_1_value_with_default=%s' % (quote_attrib(self.integer_range_1_value_with_default), )) - def exportChildren(self, outfile, level, namespace_='', name_='simpleOneType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='simpleOneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: @@ -1567,7 +1567,7 @@ class simpleTwoType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='simpleTwoType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='simpleTwoType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('simpleTwoType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1578,25 +1578,25 @@ class simpleTwoType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='simpleTwoType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='simpleTwoType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='simpleTwoType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='simpleTwoType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simpleTwoType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='simpleTwoType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='simpleTwoType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='simpleTwoType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: eol_ = '' if self.simpleTwoElementOne is not None: - self.simpleTwoElementOne.export(outfile, level, namespace_, name_='simpleTwoElementOne', pretty_print=pretty_print) + self.simpleTwoElementOne.export(outfile, level, namespaceprefix_, name_='simpleTwoElementOne', pretty_print=pretty_print) def build(self, node): already_processed = set() self.buildAttributes(node, node.attrib, already_processed) @@ -1652,7 +1652,7 @@ class simpleTwoElementOneType(GeneratedsSuper): return True else: return False - def export(self, outfile, level, namespace_='', name_='simpleTwoElementOneType', namespacedef_='', pretty_print=True): + def export(self, outfile, level, namespaceprefix_='', name_='simpleTwoElementOneType', namespacedef_='', pretty_print=True): imported_ns_def_ = GenerateDSNamespaceDefs_.get('simpleTwoElementOneType') if imported_ns_def_ is not None: namespacedef_ = imported_ns_def_ @@ -1663,19 +1663,19 @@ class simpleTwoElementOneType(GeneratedsSuper): if self.original_tagname_ is not None: name_ = self.original_tagname_ showIndent(outfile, level, pretty_print) - outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) + outfile.write('<%s%s%s' % (namespaceprefix_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) already_processed = set() - self.exportAttributes(outfile, level, already_processed, namespace_, name_='simpleTwoElementOneType') + self.exportAttributes(outfile, level, already_processed, namespaceprefix_, name_='simpleTwoElementOneType') if self.hasContent_(): outfile.write('>%s' % (eol_, )) - self.exportChildren(outfile, level + 1, namespace_='', name_='simpleTwoElementOneType', pretty_print=pretty_print) + self.exportChildren(outfile, level + 1, namespaceprefix_='', name_='simpleTwoElementOneType', pretty_print=pretty_print) showIndent(outfile, level, pretty_print) - outfile.write('</%s%s>%s' % (namespace_, name_, eol_)) + outfile.write('</%s%s>%s' % (namespaceprefix_, name_, eol_)) else: outfile.write('/>%s' % (eol_, )) - def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='simpleTwoElementOneType'): + def exportAttributes(self, outfile, level, already_processed, namespaceprefix_='', name_='simpleTwoElementOneType'): pass - def exportChildren(self, outfile, level, namespace_='', name_='simpleTwoElementOneType', fromsubclass_=False, pretty_print=True): + def exportChildren(self, outfile, level, namespaceprefix_='', name_='simpleTwoElementOneType', fromsubclass_=False, pretty_print=True): if pretty_print: eol_ = '\n' else: diff --git a/tutorial/generateds_tutorial.html b/tutorial/generateds_tutorial.html index 5ecb044..1036d4f 100644 --- a/tutorial/generateds_tutorial.html +++ b/tutorial/generateds_tutorial.html @@ -219,7 +219,7 @@ They are used by updateversion.py. --> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> -<tr class="field"><th class="field-name">revision:</th><td class="field-body">2.29.23</td> +<tr class="field"><th class="field-name">revision:</th><td class="field-body">2.29.24</td> </tr> </tbody> </table> @@ -228,7 +228,7 @@ They are used by updateversion.py. --> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> -<tr class="field"><th class="field-name">date:</th><td class="field-body">August 16, 2018</td> +<tr class="field"><th class="field-name">date:</th><td class="field-body">August 27, 2018</td> </tr> </tbody> </table> @@ -1210,7 +1210,7 @@ named <tt class="docutils literal">garden_api.py</tt>, you can create an instanc <div class="footer"> <hr class="footer" /> <a class="reference external" href="generateds_tutorial.txt">View document source</a>. -Generated on: 2018-08-16 22:29 UTC. +Generated on: 2018-08-27 21:50 UTC. Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source. </div> diff --git a/tutorial/generateds_tutorial.txt b/tutorial/generateds_tutorial.txt index dddd8f7..f1060a1 100644 --- a/tutorial/generateds_tutorial.txt +++ b/tutorial/generateds_tutorial.txt @@ -11,7 +11,7 @@ generateDS -- Introduction and Tutorial .. version -:revision: 2.29.23 +:revision: 2.29.24 .. version diff --git a/tutorial/generateds_tutorial.zip b/tutorial/generateds_tutorial.zip index b1d6245bda6c9fa3d2b918bc5768299980209f80..d7c3931dcdc7fe64e45b9c09b21457cac2088174 100644 GIT binary patch delta 13074 zcmZAeV~i!v7c~l>)3$BfwrykDwmGfSwr$&-w#}I~rj2RazQ6zby!YPZ)=pJcRq8{f zvXWg{wRY$ySjZ<BzKT3J1O@;AfC1op;ww`A4t~=I0{~DU0RZe2mozL8le@ROrUonk zeAFdWkH$4r&%+xY0E9RJ2LS$mL!P>z(_a>ptw(xC*hBy;A&xE`iF^*FH5f)^glDzQ zojGcmH<;`?Y9jFt|I}1OIMN>3nfLR{)z-n*mX(&rK%lBs&o^uhra&mcBoY-rTwzGq zWg;!#WsP#tj;3ZEC}LBscF&L)wGX-O+I_dO4OP8*@GDQux#}KMN680KXCG!%9I|I4 z_uZ#gC{O9kAUXL!j<$muCbfwCJR8+D=1=0YyXzi6I#%|Lb;$$ARSm4e!3Ba4H9QpS zi5#KV0(Y*nnpksC@Y{_TH9_eYr~T5un2k-Qxw5Ws?AM-DP>BsZrQz_Xc1Po?^KJLO zzW683R?#e{UrxKTO}(+3o7=l6?WlwSn7k#*)ek83hr~UZoTzNSWFdX1m`REDaR`0W z$WFyNmxh~%#xQ9s7K+-8V71>Sc*UagZkH9UtylVnd7xAU*8<n2a9PkUMaFH%<^tcV zJ>i5#X7isTkg2V4yKf7jeDB}EDv$Co-t67+iF#PFe5k%O6X+*+eJ%`m7@_m}XK%!@ z^AY_<m%+*9Q@CuIJeIe|2bjs$wNvf-YJ@KZb6BFL;{<mK_jxlHcy6wcSsL|6-HYNz zj2?rEUDA-JsBO-r^UO8++^Py6<qf7FNeR>#G^TY{5Y>I-FOHvrx&SmbhGFpofxD4) z5(aQRA;fpGSef*@Mk`Hkxh46grvQdWcHWw3ac?2iSf+N7h?$}CpPtt@I!Mu26|6Td z#FIDjOg2M>)?@63tz3c?p;Qq?HPrAcSnr!F1Ijj(HKj8+-_tIGFN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