for prop in properties: print >> phile, "<listitem><simpara>" print >> phile, "<xref linkend='Property-%s'/>" % ( prop.name().replace(':', '-')) print >> phile, "</simpara></listitem>" print >> phile, "</itemizedlist>" print >> phile, "Other &properties; make indirect contributions to the &equation; through the <link linkend='Flux-%s'><classname>%s</classname></link>." % ( eqn.fluxname(), eqn.fluxname()) print >> phile, "</simpara></listitem>" print >> phile, "</itemizedlist>" print >> phile, "</refsect1> <!-- Details -->" print >> phile, "<refsect1>" print >> phile, "<title>Description</title>" try: src = file("DISCUSSIONS/engine/builtin/eqn-%s.xml" % name, "r") except IOError: print >> phile, "<para>MISSING DISCUSSION FOR %s</para>" % name else: print >> phile, src.read() src.close() print >> phile, "</refsect1> <!-- Description-->" print >> phile, "</refentry>" print >> phile, "</section> <!-- Equations -->" print >> phile, "</section> <!-- Built-In Physics -->" xmlmenudump.addSection(xmldump, 5)
for param in params: xmlmenudump.process_param(param) print >> file, " <varlistentry>" print >> file, " <term><varname>%s</varname></term>" \ % param.name print >> file, " <listitem>" try: tip = xmlmenudump.getHelp(param) except AttributeError: tip = "MISSING TIP STRING: %s" % param.name print >> file, " <simpara>%s <emphasis>Type</emphasis>: %s</simpara>" \ % (tip, param.valueDesc()) print >> file, " </listitem>" print >> file, " </varlistentry>" print >> file, " </variablelist>" print >> file, " </refsect1>" print >> file, " <refsect1>" print >> file, " <title>Description</title>" try: print >> file, xmlmenudump.getDiscussion(o) except AttributeError: print >> file, \ "<simpara>MISSING DISCUSSION: Output %s</simpara>" % path print >> file, " </refsect1>" print >> file, "</refentry>" print >> file, "</section>" # End of Outputs xmlmenudump.addSection(outputDump, 2)
xmlmenudump.process_param(param) print >> file, " <varlistentry>" print >> file, " <term><varname>%s</varname></term>" \ % param.name print >> file, " <listitem>" try: tip = xmlmenudump.getHelp(param) except AttributeError: tip = "MISSING TIP STRING: %s" % param.name print >> file, " <simpara>%s <emphasis>Type</emphasis>: %s</simpara>" \ % (tip, param.valueDesc()) print >> file, " </listitem>" print >> file, " </varlistentry>" print >> file, " </variablelist>" print >> file, " </refsect1>" print >> file, " <refsect1>" print >> file, " <title>Description</title>" try: print >> file, xmlmenudump.getDiscussion(o) except AttributeError: print >> file, \ "<simpara>MISSING DISCUSSION: Output %s</simpara>" % path print >> file, " </refsect1>" print >> file, "</refentry>" print >> file, "</section>" # End of Outputs xmlmenudump.addSection(outputDump, 2)
print >> phile, "<listitem><simpara>" print >> phile, "<xref linkend='Property-%s'/>" % ( prop.name().replace(':','-')) print >> phile, "</simpara></listitem>" print >> phile, "</itemizedlist>" print >> phile, "Other &properties; make indirect contributions to the &equation; through the <link linkend='Flux-%s'><classname>%s</classname></link>." % (eqn.fluxname(), eqn.fluxname()) print >> phile, "</simpara></listitem>" print >> phile, "</itemizedlist>" print >> phile, "</refsect1> <!-- Details -->" print >> phile, "<refsect1>" print >> phile, "<title>Description</title>" try: src = file("DISCUSSIONS/engine/builtin/eqn-%s.xml" % name, "r") except IOError: print >> phile, "<para>MISSING DISCUSSION FOR %s</para>" % name else: print >> phile, src.read() src.close() print >> phile, "</refsect1> <!-- Description-->" print >> phile, "</refentry>" print >> phile, "</section> <!-- Equations -->" print >> phile, "</section> <!-- Built-In Physics -->" xmlmenudump.addSection(xmldump, 5)