-# def setUser(self, user):
-# Config.SFI_USER = user
-#
-# # Should probably get authority from user record instead...
-# a = user.split('.')
-# Config.SFI_AUTH = '.'.join(a[:len(a)-1])
-
- def getSliceRSpecFile(self):
- return os.path.expanduser("~/.sfi/%s.rspec" % self.getSlice())
-
- def getSliceRecordFile(self):
- return os.path.expanduser("~/.sfi/%s.record" % self.getSlice())
-
- def getAuthorityRecordFile(self):
- return os.path.expanduser("~/.sfi/%s.record" % self.getAuthority())
-
- def getAuthorityListFile(self, i=None):
- if (i != None) and (i != 0):
- return os.path.expanduser("~/.sfi/%s_list.record.%d" % (self.getAuthority(),i))
- else:
- return os.path.expanduser("~/.sfi/%s_list.record" % self.getAuthority())
+ def fullpath (self, filename): return os.path.join(self.get_dirname(),filename)
+
+ def getSliceRSpecFile(self): return self.fullpath("%s.rspec" % self.getSlice())
+
+ def getResourcesRSpecFile(self): return self.fullpath("resources.rspec")
+
+ def getSliceRecordFile(self): return self.fullpath ("%s.record" % self.getSlice())
+
+ def getUserRecordFile(self): return self.fullpath ("%s.record" % self.getUser())
+
+ def getAuthorityRecordFile(self): return self.fullpath ("%s/%s.record" % self.getAuthority())
+
+ def getAuthorityListFile(self): return self.fullpath ("%s_list.xml" % self.getAuthority())