git://git.onelab.eu
/
sface.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02253f1
)
add applyRSpec to sfiprocess
author
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Mon, 13 Sep 2010 14:57:32 +0000
(16:57 +0200)
committer
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Mon, 13 Sep 2010 14:57:32 +0000
(16:57 +0200)
sface/sfiprocess.py
patch
|
blob
|
history
diff --git
a/sface/sfiprocess.py
b/sface/sfiprocess.py
index
cd24f9a
..
9dce273
100644
(file)
--- 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)