def _getPersons(self):
        cpAvatars, cpNewUsers, cpEditedAvatars , auAvatars, auNewUsers, auEditedAvatars = [], [], [] , [] , [] , []
        from MaKaC.services.interface.rpc import json
        chairpersonDict = json.decode(self._params.get("chairperson", "")) or []
        allowedUsersDict = json.decode(self._params.get("allowedUsers", "")) or []
        if chairpersonDict:
            cpAvatars, cpNewUsers, cpEditedAvatars = UserListModificationBase.retrieveUsers({"userList":chairpersonDict})
        if allowedUsersDict :
            auAvatars, auNewUsers, auEditedAvatars = UserListModificationBase.retrieveUsers({"userList":allowedUsersDict})

        return cpAvatars, cpNewUsers, cpEditedAvatars, auAvatars
示例#2
0
 def _getPersons(self):
     cpAvatars, cpNewUsers, auAvatars = [], [], []
     from MaKaC.services.interface.rpc import json
     chairpersonDict = json.decode(self._params.get("chairperson"))
     allowedUsersDict = json.decode(self._params.get("allowedUsers"))
     if chairpersonDict:
         cpAvatars, cpNewUsers, cpEditedAvatars = UserListModificationBase.retrieveUsers({"userList":chairpersonDict})
     if allowedUsersDict :
         auAvatars, auNewUsers, auEditedAvatars = UserListModificationBase.retrieveUsers({"userList":allowedUsersDict})
     #raise "avt: %s, newusers: %s, edited: %s"%(map(lambda x:x.getFullName(),avatars), newUsers, editedAvatars)
     return cpAvatars, cpNewUsers, auAvatars
示例#3
0
    def _getAllowedUsers(self, params):

        auAvatars = []
        from MaKaC.services.interface.rpc import json
        allowedUsersDict = json.decode(params.get("allowedUsers"))
        if allowedUsersDict :
            auAvatars, auNewUsers, auEditedAvatars = UserListModificationBase.retrieveUsers({"allowedUserList":allowedUsersDict}, "allowedUserList")

        return auAvatars
示例#4
0
 def _checkParams(self):
     UserListModificationBase._checkParams(self)
     ConferenceReviewingPRMBase._checkParams(self)
示例#5
0
文件: services.py 项目: Ictp/indico
 def _checkParams(self):
     CollaborationChangePluginManagersBase._checkParams(self)
     UserListModificationBase._checkParams(self)
示例#6
0
 def _checkParams(self):
     UserListModificationBase._checkParams(self)
     ConferenceReviewingPRMBase._checkParams(self)
示例#7
0
 def _checkParams(self):
     CollaborationChangePluginManagersBase._checkParams(self)
     UserListModificationBase._checkParams(self)
示例#8
0
 def _checkParams(self):
     PluginOptionsBase._checkParams(self)
     UserListModificationBase._checkParams(self)
示例#9
0
 def _checkParams(self):
     PluginOptionsBase._checkParams(self)
     UserListModificationBase._checkParams(self)
示例#10
0
 def _getPersons(self):
     from MaKaC.services.interface.rpc import json
     allowedUsersDict = json.decode(self._params.get("allowedUsers") or "[]") or []
     return UserListModificationBase.retrieveUsers({"userList": allowedUsersDict})[0] if allowedUsersDict else []
示例#11
0
 def _getPersons(self):
     from MaKaC.services.interface.rpc import json
     allowedUsersDict = json.decode(
         self._params.get("allowedUsers") or "[]") or []
     return UserListModificationBase.retrieveUsers(
         {"userList": allowedUsersDict})[0] if allowedUsersDict else []