def getAllPushedListByBoss(self, jsonInfo): info = json.loads(jsonInfo) tokenID = info['tokenID'] (status, userID) = self.isTokenValid(tokenID) if status is not True: errorInfo = ErrorInfo['TENDER_01'] return (False, errorInfo) info['selfUserID'] = userID info['staffUserID'] = info['userID'] info['selfUserType'] = USER_TAG_BOSS pushedTenderManager = PushedTenderManager() return pushedTenderManager.getAllPushedList(info=info)
def getAllPushedListByAuditor(self, jsonInfo): info = json.loads(jsonInfo) tokenID = info['tokenID'] (status, userID) = self.isTokenValid(tokenID) if status is not True: errorInfo = ErrorInfo['TENDER_01'] return (False, errorInfo) info['selfUserID'] = userID info['staffUserID'] = info['userID'] info['selfUserType'] = USER_TAG_AUDITOR pushedTenderManager = PushedTenderManager() (status, result) = pushedTenderManager.getAllPushedList(info=info) if status is True: self.__tagTenderList(info=result) return (status, result)