From: Barış Metin Date: Mon, 13 Sep 2010 14:57:32 +0000 (+0200) Subject: add applyRSpec to sfiprocess X-Git-Tag: sface-0.1-1~48 X-Git-Url: http://git.onelab.eu/?p=sface.git;a=commitdiff_plain;h=0b8a8e633c3638ce75760f3445686e5b365bdd56 add applyRSpec to sfiprocess --- diff --git a/sface/sfiprocess.py b/sface/sfiprocess.py index cd24f9a..9dce273 100644 --- a/sface/sfiprocess.py +++ b/sface/sfiprocess.py @@ -65,6 +65,16 @@ class SfiProcess(QObject): self.__init_command(args) self.start() + def applyRSpec(self, rspec): + filename = config.getSliceRSpecFile() + "_new" + rspec.save(filename) + args = ["-u", config.getUser(), "-a", config.getAuthority(), + "-r", config.getRegistry(), "-s", config.getSlicemgr(), "create", + config.getSlice, filename] + self.__init_command(args) + self.start() + return filename + def start(self): self.trace_command() self.process.start(self.exe, self.args)