Changeset f4f4117 for fedd/fedd_split.py


Ignore:
Timestamp:
Oct 20, 2008 5:17:31 PM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
fa19281
Parents:
72ed6e4
Message:

add remote splitter interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_split.py

    r72ed6e4 rf4f4117  
    4343        Intialize the various attributes, most from the config object
    4444        """
    45         self.debug = config.create_debug
     45        if config.has_section("splitter"):
     46            self.debug = config.getboolean("splitter", "debug")
     47            self.muxmax = config.getint("splitter", "muxmax", 3)
     48        else:
     49            self.debug = False
     50            self.muxmax = 3
     51
    4652        self.log = logging.getLogger("fedd.splitter")
    4753        self.tclsh = "/usr/local/bin/otclsh"
     
    8288        pid = "dummy"
    8389        gid = "dummy"
     90        eid = "dummy"
    8491
    8592        req = req.get('Ns2SplitRequestBody', None)
     
    8895                    "Bad request format (no Ns2SplitRequestBody)")
    8996        # The tcl parser needs to read a file so put the content into that file
    90         descr=req.get('experimentdescription', None)
     97        descr=req.get('description', None)
    9198        if descr:
    9299            file_content=descr.get('ns2description', None)
     
    103110                        "Only ns2descriptions supported")
    104111        else:
    105             raise service_error(service_error.req, "No experiment description")
     112            raise service_error(service_error.req, "No description")
    106113
    107114        master = req.get('master', None)
     
    114121        tclparser = Popen(tclcmd, stdout=PIPE)
    115122
     123        out = ""
    116124        # Package up the split data
    117125        for line in tclparser.stdout:
Note: See TracChangeset for help on using the changeset viewer.