Changeset 205 in products
- Timestamp:
- Jan 25, 2006 4:56:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
qPloneComments/branches/plone-2.1/skins/qplonecomments/prefs_comments_setup.cpy
r194 r205 10 10 from Products.CMFCore.utils import getToolByName 11 11 from Products.qPloneComments.utils import setAnonymCommenting 12 from Products.qPloneComments.utils import setStatusMsg13 12 14 13 form = context.REQUEST.form … … 38 37 props_sheet.manage_changeProperties(kw) 39 38 40 moderate_discussion = 'Moderate Discussion' 41 if not 'EnableManagerModeration' in request_ids: 42 roles = [item['name'] for item in context.rolesOfPermission(moderate_discussion) 43 if (item['name'] != 'Manager') and (item['selected'] == 'SELECTED')] 44 context.manage_permission(moderate_discussion, roles, acquire=0) 45 46 else: 47 roles = [item['name'] for item in context.rolesOfPermission(moderate_discussion) 48 if item['selected'] == 'SELECTED'] 49 roles.append('Manager') 50 context.manage_permission(moderate_discussion, roles, acquire=0) 51 52 setStatusMsg(state, context, u'qPloneComments configuration changes saved.') 53 return state 39 return state.set(portal_status_message='qPloneComments configuration changes saved.')
Note: See TracChangeset
for help on using the changeset viewer.