Changeset 205 in products


Ignore:
Timestamp:
Jan 25, 2006 4:56:37 PM (19 years ago)
Author:
chervol
Message:

fixed labels in configlet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qPloneComments/branches/plone-2.1/skins/qplonecomments/prefs_comments_setup.cpy

    r194 r205  
    1010from Products.CMFCore.utils import getToolByName 
    1111from Products.qPloneComments.utils import setAnonymCommenting 
    12 from Products.qPloneComments.utils import setStatusMsg 
    1312 
    1413form = context.REQUEST.form 
     
    3837props_sheet.manage_changeProperties(kw) 
    3938 
    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 
     39return state.set(portal_status_message='qPloneComments configuration changes saved.') 
Note: See TracChangeset for help on using the changeset viewer.