Changeset 1865 for WAeUP_SRP


Ignore:
Timestamp:
8 Jun 2007, 08:46:21 (18 years ago)
Author:
joachim
Message:

open if closed NOT in custom, Henrik please test first

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/delete_course_result.py

    r1853 r1865  
    2121logger = logging.getLogger('Skins.delete_course_result')
    2222mtool = context.portal_membership
     23wf = context.portal_workflow
    2324member = mtool.getAuthenticatedMember()
    2425
     
    3132        if context.hasObject(id):
    3233            real_ids.append(id)
     34    for cr_id in real_ids:
     35        cr = getattr(context,cr_id)
     36        if wf.getInfoFor(cr,'review_state',None) == "closed":
     37            context.portal_workflow.doActionFor(cr,'open')
    3338    if real_ids:
    3439        try:
Note: See TracChangeset for help on using the changeset viewer.