[CMF-checkins] CVS: Products/CMFDefault/skins/zpt_control -
folder_localrole_edit.py:1.1
Yvo Schubbe
y.2004_ at wcm-solutions.de
Sat Aug 7 07:20:03 EDT 2004
Update of /cvs-repository/Products/CMFDefault/skins/zpt_control
In directory cvs.zope.org:/tmp/cvs-serv23707/CMFDefault/skins/zpt_control
Added Files:
folder_localrole_edit.py
Log Message:
- copied missing script from dtml layer (dtml layers are no longer part of the zpt skin)
=== Added File Products/CMFDefault/skins/zpt_control/folder_localrole_edit.py ===
##parameters=change_type
##title=Set local roles
##
pm = context.portal_membership
if change_type == 'add':
pm.setLocalRoles( obj=context
, member_ids=context.REQUEST.get('member_ids', ())
, member_role=context.REQUEST.get('member_role', '')
)
else:
pm.deleteLocalRoles( obj=context
, member_ids=context.REQUEST.get('member_ids', ())
)
qst='?portal_status_message=Local+Roles+changed.'
context.REQUEST.RESPONSE.redirect( context.absolute_url() + '/folder_localrole_form' + qst )
More information about the CMF-checkins
mailing list