예제 #1
0
 def getOwnPerList(self, rId):
     allPerTuple = sqlOp.getAllPerName()
     allPerDict = dict()
     for per in allPerTuple:
         allPerDict[per[0]] = per[1]
     ownPerTuple = sqlOp.getOwnPer(rId)
     ownPerDict = dict()
     for i in ownPerTuple:
         ownPerDict[i[0]] = allPerDict[i[0]]
     return ownPerDict
예제 #2
0
 def getDontOwnPerList(self, rId=None):
     allPerTuple = sqlOp.getAllPerName()
     allPerDict = dict()
     for per in allPerTuple:
         allPerDict[per[0]] = per[1]
     dontOwnPer = dict()
     if rId is None:
         ownPer = list()
     else:
         ownPer = sqlOp.getOwnPer(rId)
     for per in ownPer:
         if allPerDict.has_key(per[0]):
             allPerDict.pop(per[0])
     dontOwnPer = allPerDict
     return dontOwnPer