def writenodeserver(self, nodestr, server):
        (host, port, sock) = self.getserver(server)
        serverstr = "%s %s %s" % (server, host, port)
        name = nodestr.split()[1]
        dirname = os.path.join(self.session.sessiondir, name + ".conf")
        filename = os.path.join(dirname, "server")
        try:
            os.makedirs(dirname)
        except OSError:
            # directory may already exist from previous distributed run
            pass
        try:
            f = open(filename, "w")
            f.write("%s\n%s\n" % (serverstr, nodestr))
            f.close()
            return True
        except Exception, e:
            msg = "Error writing server file '%s'" % filename
            msg += "for node %s:\n%s" % (name, e)
            self.session.warn(msg)
            return False
Set the state of a widget to a certain value
dataset/ETHPy150Open coreemu/core/daemon/core/broker.py/CoreBroker.writenodeserver--crossover with--dataset/ETHPy150Open glue-viz/glue/glue/utils/qt/widget_properties.py/WidgetProperty.setter