Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 4
0
 def _checkParams(self):
     UserListModificationBase._checkParams(self)
     ConferenceReviewingPRMBase._checkParams(self)
Exemplo n.º 5
0
 def _checkParams(self):
     CollaborationChangePluginManagersBase._checkParams(self)
     UserListModificationBase._checkParams(self)
Exemplo n.º 6
0
 def _checkParams(self):
     UserListModificationBase._checkParams(self)
     ConferenceReviewingPRMBase._checkParams(self)
Exemplo n.º 7
0
 def _checkParams(self):
     CollaborationChangePluginManagersBase._checkParams(self)
     UserListModificationBase._checkParams(self)
Exemplo n.º 8
0
 def _checkParams(self):
     PluginOptionsBase._checkParams(self)
     UserListModificationBase._checkParams(self)
Exemplo n.º 9
0
 def _checkParams(self):
     PluginOptionsBase._checkParams(self)
     UserListModificationBase._checkParams(self)
Exemplo n.º 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 []
Exemplo n.º 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 []