X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fsfiprocess.py;h=089c7393c2d3fa501c2ad1c6c63e30deab4b4f29;hp=6f131a766b03db5229e24e637490be1257be55f5;hb=5a487f5551aff6228d7615a85ff4c84a54d98e85;hpb=92633ace6fba6b0330caed03b7d7f5249e050940 diff --git a/sface/sfiprocess.py b/sface/sfiprocess.py index 6f131a7..089c739 100644 --- a/sface/sfiprocess.py +++ b/sface/sfiprocess.py @@ -221,9 +221,15 @@ class SfiProcess(QObject): self.__init_command(args) self.start() - def getRecord(self, hrn, filename=None): - args = ["-u", config.getUser(), "-a", config.getAuthority(), - "-r", config.getRegistry(), "-s", config.getSlicemgr(), "show", hrn] + def getRecord(self, hrn, type=None, filename=None): + args = ["-u", config.getUser(), + "-a", config.getAuthority(), + "-r", config.getRegistry(), + "-s", config.getSlicemgr(), + "show", hrn] + if type: + args.append("-t") + args.append(type) if filename: args.append("-o") args.append(filename) @@ -231,10 +237,10 @@ class SfiProcess(QObject): self.start() def getSliceRecord(self): - self.getRecord(config.getSlice(), config.getSliceRecordFile()) + self.getRecord(config.getSlice(), type="slice", filename=config.getSliceRecordFile()) def getAuthorityRecord(self): - self.getRecord(config.getAuthority(), config.getAuthorityRecordFile()) + self.getRecord(config.getAuthority(), filename=config.getAuthorityRecordFile()) def applyRSpec(self, rspec, aggAddr=None, aggPort=None, saveObtained=True): # that's what we pass, like in what we'd like to get