+
+####################
+# the place were other test instances tell about their not-yet-started
+# instances, that go undetected through sensing
+class Starting:
+
+ location='/root/starting'
+ def __init__ (self):
+ self.tuples=[]
+
+ def load (self):
+ try: self.tuples=[line.strip().split('@')
+ for line in file(Starting.location).readlines()]
+ except: self.tuples=[]
+
+ def vnames (self) :
+ self.load()
+ return [ x for (x,_) in self.tuples ]
+
+ def add (self, vname, bname):
+ if not vname in self.vnames():
+ file(Starting.location,'a').write("%s@%s\n"%(vname,bname))
+
+ def delete_vname (self, vname):
+ self.load()
+ if vname in self.vnames():
+ f=file(Starting.location,'w')
+ for (v,b) in self.tuples:
+ if v != vname: f.write("%s@%s\n"%(v,b))
+ f.close()
+