[CMF-checkins] SVN: CMF/branches/1.6/CMFDefault/skins/ Patch from
bloodbare to ensure that the postonly protection is used from
scripts.
Alec Mitchell
apm13 at columbia.edu
Sat Mar 31 13:26:09 EDT 2007
Log message for revision 73956:
Patch from bloodbare to ensure that the postonly protection is used from scripts.
Changed:
U CMF/branches/1.6/CMFDefault/skins/control/folder_localrole_edit.py
U CMF/branches/1.6/CMFDefault/skins/zpt_control/folder_localrole_edit.py
U CMF/branches/1.6/CMFDefault/skins/zpt_control/members_delete_control.py
-=-
Modified: CMF/branches/1.6/CMFDefault/skins/control/folder_localrole_edit.py
===================================================================
--- CMF/branches/1.6/CMFDefault/skins/control/folder_localrole_edit.py 2007-03-31 14:11:32 UTC (rev 73955)
+++ CMF/branches/1.6/CMFDefault/skins/control/folder_localrole_edit.py 2007-03-31 17:26:09 UTC (rev 73956)
@@ -8,10 +8,12 @@
pm.setLocalRoles( obj=context
, member_ids=context.REQUEST.get('member_ids', ())
, member_role=context.REQUEST.get('member_role', '')
+ , REQUEST=context.REQUEST
)
else:
pm.deleteLocalRoles( obj=context
, member_ids=context.REQUEST.get('member_ids', ())
+ , REQUEST=context.REQUEST
)
qst='?portal_status_message=Local+Roles+changed.'
Modified: CMF/branches/1.6/CMFDefault/skins/zpt_control/folder_localrole_edit.py
===================================================================
--- CMF/branches/1.6/CMFDefault/skins/zpt_control/folder_localrole_edit.py 2007-03-31 14:11:32 UTC (rev 73955)
+++ CMF/branches/1.6/CMFDefault/skins/zpt_control/folder_localrole_edit.py 2007-03-31 17:26:09 UTC (rev 73956)
@@ -7,10 +7,12 @@
pm.setLocalRoles( obj=context
, member_ids=context.REQUEST.get('member_ids', ())
, member_role=context.REQUEST.get('member_role', '')
+ , REQUEST=context.REQUEST
)
else:
pm.deleteLocalRoles( obj=context
, member_ids=context.REQUEST.get('member_ids', ())
+ , REQUEST=context.REQUEST
)
qst='?portal_status_message=Local+Roles+changed.'
Modified: CMF/branches/1.6/CMFDefault/skins/zpt_control/members_delete_control.py
===================================================================
--- CMF/branches/1.6/CMFDefault/skins/zpt_control/members_delete_control.py 2007-03-31 14:11:32 UTC (rev 73955)
+++ CMF/branches/1.6/CMFDefault/skins/zpt_control/members_delete_control.py 2007-03-31 17:26:09 UTC (rev 73956)
@@ -5,7 +5,7 @@
mtool = getToolByName(script, 'portal_membership')
-mtool.deleteMembers(ids)
+mtool.deleteMembers(ids,REQUEST=context.REQUEST)
return context.setStatus( True, 'Selected member%s deleted.' %
( len(ids) != 1 and 's' or '' ) )
More information about the CMF-checkins
mailing list