Esempio n. 1
0
 def initial_tag(self, local_first=True):
     for i in [0, 1, 2]:
         r_tag=RobotTag(i)
         temp=list()
         if local_first:
             if not r_tag.localstart():
                 return False
         else:
             if not r_tag.netstart():
                 return False
         tag_res=r_tag.result
         for j in range(len(tag_res)):
             temp.append((0, 0))
         self.profile[i].extend(temp)
     return self.save_profile()
Esempio n. 2
0
 def read_todo(self, tid=0, local_first=True):
     r_tag=RobotTag(self.dbt)
     r_list=RobotList(self.dbt)
     #done_start=self.profile[self.dbt][tid][1]
     if local_first:
         if not r_tag.localstart():
             return False
     else:
         if not r_tag.netstart():
             return False
     tag_res=r_tag.result
     tag_name=tag_res[tid]
     if local_first:
         if not r_list.localstart(tag_name):
             return False
     else:
         if not r_list.netstart(tag_name):
             return False
     #self.profile[self.dbt][tid]=(r_list.count, done_start)
     self.lists=r_list.result
     return True