Changeset 2817


Ignore:
Timestamp:
28 Nov 2007, 15:01:47 (17 years ago)
Author:
Henrik Bettermann
Message:

allow section to delete objects (in custom)

Location:
WAeUP_SRP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/level_delete.py

    r2448 r2817  
    4747    #     evtool = getPublicEventService(here)
    4848    #     evtool.notifyEvent('workflow_delete', ob, {})
     49    context.waeup_tool.updateRoleMappingsFor('waeup_student_subobject_wf',context)
    4950    for level_id in ids:
    5051        context.course_results.deleteResultsHere(level_id,student_id)
    5152    here.manage_delObjects(ids)
    52    
     53
    5354    message = 'portal_status_message=psm_item(s)_deleted'
    5455else:
  • WAeUP_SRP/uniben/profiles/default/workflows/waeup_student_subobject_wf/definition.xml

    r2696 r2817  
    2020   <permission-role>Manager</permission-role>
    2121   <permission-role>SectionManager</permission-role>
     22   <permission-role>SectionOfficer</permission-role>
    2223  </permission-map>
    2324  <permission-map name="Modify portal content"
     
    9596   <permission-role>Manager</permission-role>
    9697   <permission-role>SectionManager</permission-role>
     98   <permission-role>SectionOfficer</permission-role>
    9799  </permission-map>
    98100  <permission-map name="Modify portal content"
     
    113115             new_state="closed" trigger="USER"
    114116             before_script="" after_script="">
    115  
    116  
     117
     118
    117119  <guard>
    118120   <guard-role>SectionOfficer</guard-role>
     
    126128             new_state="content_addable" trigger="USER"
    127129             before_script="" after_script="">
    128  
    129  
     130
     131
    130132  <guard>
    131133   <guard-role>SectionOfficer</guard-role>
     
    139141             new_state="created" trigger="USER"
    140142             before_script="" after_script="">
    141  
    142  
     143
     144
    143145  <guard>
    144146  </guard>
     
    149151             new_state="" trigger="USER" before_script=""
    150152             after_script="">
    151  
    152  
     153
     154
    153155  <guard>
    154156  </guard>
     
    158160             new_state="opened" trigger="USER"
    159161             before_script="" after_script="">
    160  
    161  
     162
     163
    162164  <guard>
    163165   <guard-role>SectionOfficer</guard-role>
Note: See TracChangeset for help on using the changeset viewer.