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
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
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
def _checkParams(self): UserListModificationBase._checkParams(self) ConferenceReviewingPRMBase._checkParams(self)
def _checkParams(self): CollaborationChangePluginManagersBase._checkParams(self) UserListModificationBase._checkParams(self)
def _checkParams(self): PluginOptionsBase._checkParams(self) UserListModificationBase._checkParams(self)
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 []
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 []