- Timestamp:
- May 19, 2010 7:22:16 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 11867dde
- Parents:
- df3179c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/compose.py
rdf3179c r4b68c58 439 439 return (top, marks) 440 440 441 def import_ topdl_component(fn):441 def import_xml_component(fn): 442 442 """ 443 443 Pull a component in from a topdl description. … … 474 474 given by format if any. If both are None, output to stdout in topdl 475 475 """ 476 def topdl_out(f, top, constraints):476 def xml_out(f, top, constraints): 477 477 """ 478 478 Output into topdl. Just call the topdl output, as the constraint … … 516 516 # Info to map from format to output routine. 517 517 exporters = { 518 'xml': topdl_out, 'topdl':topdl_out,518 'xml':xml_out, 'topdl':xml_out, 519 519 'tcl': ns2_out, 'ns': ns2_out, 520 520 } … … 535 535 else: 536 536 # Both outfile and format are empty 537 exporter = topdl_out537 exporter = xml_out 538 538 539 539 # The actual output. Open the file, if any, and call the exporter … … 557 557 'tcl': import_ns2_component, 558 558 'ns': import_ns2_component, 559 'xml':import_ topdl_component,560 'topdl':import_ topdl_component,559 'xml':import_xml_component, 560 'topdl':import_xml_component, 561 561 } 562 562 names = set() … … 668 668 output_composition(comp, [c for c in constraints if not c.match], 669 669 opts.outfile, opts.format) 670 671 sys.exit(0)
Note: See TracChangeset
for help on using the changeset viewer.