Beispiel #1
0
 def getqaemaillist(producttypeid, outputemaillist):
     qagroup = DAL_DictValue.getdatavaluebyid(producttypeid).DicDataDesc
     emaillist = outputemaillist
     for user in UserService.getusersbygroup(qagroup):
         if user.email in emaillist:
             pass
         else:
             emaillist.append(user.email)
     return emaillist
Beispiel #2
0
 def getdevemaillist(submitorid,outputemaillist):
     emaillist=outputemaillist
     devgroups=UserService.getuser(submitorid).groups.all()
     for group in devgroups:
         for user in UserService.getusersbygroup(group.name):
             if user.has_perm('testjob.view_all_job'):
                 if user.email in emaillist:
                     pass
                 else:
                     emaillist.append(user.email)
     return emaillist