- Timestamp:
- Mar 17, 2010 2:27:33 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 1dcaff4
- Parents:
- 76441b6
- Location:
- fedd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_client.py
r76441b6 r3159f5d 1511 1511 if os.access(cert, os.R_OK): 1512 1512 fid = fedid(file=cert) 1513 if opts.use_fedid == True:1514 user = fid1515 1513 else: 1516 1514 sys.exit("Cannot read certificate (%s)" % cert) … … 1556 1554 if opts.debug > 1: print >>sys.stderr, resp_dict 1557 1555 1558 out = resp_dict.get('output', None) 1559 1560 for line in out.splitlines(): 1561 print "%s" % line 1556 ed = resp_dict.get('experimentdescription', None) 1557 if ed: 1558 if ed.has_key('topdldescription'): 1559 topo = topdl.Topology(**ed['topdldescription']) 1560 print topdl.topology_to_xml(topo, 'experiment') 1562 1561 1563 1562 class access(fedd_rpc): -
fedd/federation/split.py
r76441b6 r3159f5d 5 5 import tempfile 6 6 import logging 7 import topdl 7 8 8 9 from util import * … … 128 129 129 130 130 tclcmd = [self.tclsh, self.tcl_splitter, '- s', '-x',131 tclcmd = [self.tclsh, self.tcl_splitter, '-t', '-x', 131 132 str(self.muxmax), '-m', master] 132 133 if include_fedkit: tclcmd.append('-k') … … 135 136 tclparser = subprocess.Popen(tclcmd, stdout=subprocess.PIPE) 136 137 137 out = "" 138 # Package up the split data 139 for line in tclparser.stdout: 140 out += line 138 top = topdl.topology_from_xml(file=tclparser.stdout, top="experiment") 141 139 142 140 # Walk up tmpdir, deleting as we go … … 148 146 os.rmdir(tmpdir) 149 147 150 resp = { 'output' : out } 148 resp = { 149 'experimentdescription': { 150 'topdldescription': top.to_dict(), 151 } 152 } 151 153 152 154 return resp
Note: See TracChangeset
for help on using the changeset viewer.