def manage_editAdministrativeRoles(self, ids=(), role=(), REQUEST=None): """ Overrides AdministrativeRoleable.manage_editAdministrativeRoles Updates the administrators to this ComponentOrganizer @param ids: Users to update @type ids: tuple of strings """ AdministrativeRoleable.manage_editAdministrativeRoles(self, ids, role) notify(IndexingEvent(self, ('allowedRolesAndUsers', ), False)) self._setComponentLocalRoles() if REQUEST: messaging.IMessageSender(self).sendToBrowser( 'Role Added', 'Administrative roles were updated: %s' % ', '.join(ids)) return self.callZenScreen(REQUEST)
def manage_addAdministrativeRole(self, user_id, REQUEST=None): """ Overrides AdministrativeRoleable.manage_addAdministrativeRole Adds an administrator to this ComponentOrganizer @param user_id: User to make an administrator of this Organizer @type user_id: string """ AdministrativeRoleable.manage_addAdministrativeRole(self, user_id) notify(IndexingEvent(self, ('allowedRolesAndUsers', ), False)) self._setComponentLocalRoles() if REQUEST: messaging.IMessageSender(self).sendToBrowser( 'Role Added', 'Administrative role %s was added.' % user_id) return self.callZenScreen(REQUEST)
def manage_editAdministrativeRoles(self, ids=(), role=(), REQUEST=None): """ Overrides AdministrativeRoleable.manage_editAdministrativeRoles Updates the administrators to this ComponentOrganizer @param ids: Users to update @type ids: tuple of strings """ AdministrativeRoleable.manage_editAdministrativeRoles(self, ids, role) notify(IndexingEvent(self, ('allowedRolesAndUsers',), False)) self._setComponentLocalRoles() if REQUEST: messaging.IMessageSender(self).sendToBrowser( 'Role Added', 'Administrative roles were updated: %s' % ', '.join(ids) ) return self.callZenScreen(REQUEST)
def manage_addAdministrativeRole(self, user_id, REQUEST=None): """ Overrides AdministrativeRoleable.manage_addAdministrativeRole Adds an administrator to this ComponentOrganizer @param user_id: User to make an administrator of this Organizer @type user_id: string """ AdministrativeRoleable.manage_addAdministrativeRole(self, user_id) notify(IndexingEvent(self, ('allowedRolesAndUsers',), False)) self._setComponentLocalRoles() if REQUEST: messaging.IMessageSender(self).sendToBrowser( 'Role Added', 'Administrative role %s was added.' % user_id ) return self.callZenScreen(REQUEST)