Ignore:
Timestamp:
02/21/11 11:21:34 (2 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
3390a6
Parents:
1c0ac8
git-author:
Adrian Moennich <jerome.ernst.monnich@…> (01/06/11 17:19:42)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (02/21/11 11:21:34)
Message:

[IMP] Ajaxify access/modification key settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/services/implementation/conference.py

    r6e631c rf5f6da  
    719719        elif isinstance(userToRemove, Avatar) or isinstance(userToRemove, Group) : 
    720720            self._conf.revokeAccess(userToRemove) 
     721 
     722class ConferenceProtectionSetAccessKey(ConferenceModifBase): 
     723 
     724    def _checkParams(self): 
     725        ConferenceModifBase._checkParams(self) 
     726        self._accessKey = self._params.get("accessKey", "") 
     727 
     728    def _getAnswer(self): 
     729        self._conf.setAccessKey(self._accessKey) 
     730 
     731class ConferenceProtectionSetModifKey(ConferenceModifBase): 
     732 
     733    def _checkParams(self): 
     734        ConferenceModifBase._checkParams(self) 
     735        self._modifKey = self._params.get("modifKey", "") 
     736 
     737    def _getAnswer(self): 
     738        self._conf.setModifKey(self._modifKey) 
    721739 
    722740 
     
    744762    "protection.getAllowedUsersList": ConferenceProtectionUserList, 
    745763    "protection.addAllowedUsers": ConferenceProtectionAddUsers, 
    746     "protection.removeAllowedUser": ConferenceProtectionRemoveUser 
     764    "protection.removeAllowedUser": ConferenceProtectionRemoveUser, 
     765    "protection.setAccessKey": ConferenceProtectionSetAccessKey, 
     766    "protection.setModifKey": ConferenceProtectionSetModifKey 
    747767    } 
Note: See TracChangeset for help on using the changeset viewer.