Exemplo n.º 1
0
 def get_testjob_testers(testjobid):
     testers = DAL_User.getuserbygroup("QA")
     result=list()
     for tester in testers:
         temp=dict()
         temp["text"]=tester.last_name + tester.first_name
         temp["memberid"]=tester.id
         if testjobid!=0:
             testjob=DAL_TestJob.gettestjob(testjobid)
             if "[" in testjob.TJTester:
                 testerlist=eval(testjob.TJTester.replace("[","").replace("']","").replace("u'","").replace("'","")+",")
             else:
                 testerlist=eval(testjob.TJTester)
             if tester.id in testerlist:
                 temp["selected"]=1
             else:
                 temp["selected"]=0
         else:
             temp["selected"]=0
         result.append(temp)
     return str(result).replace("u'","'")
Exemplo n.º 2
0
 def get_all_testers():
     testers = DAL_User.getuserbygroup("QA")
     return [(tester.id, tester.last_name + tester.first_name) for tester in testers]
Exemplo n.º 3
0
 def getusersbygroup(usergroup):
     return DAL_User.getuserbygroup(usergroup)
Exemplo n.º 4
0
 def getavaliblesubmitors():
     submitiors = DAL_User.getuserbygroup("Dev")
     return [(developer.id, developer.last_name + developer.first_name)
             for developer in submitiors]
Exemplo n.º 5
0
 def getavalibledevelopers():
     developers = DAL_User.getuserbygroup("Dev")
     return [(developer.id, developer.last_name + developer.first_name)
             for developer in developers]