Пример #1
0
    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
 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 []