Ignore:
Timestamp:
19 Dec 2007, 11:16:49 (17 years ago)
Author:
Henrik Bettermann
Message:

install button to execute transitions return and pay_school_fee

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_utilities/changeRegState.py

    r2194 r2961  
    1515mtool = context.portal_membership
    1616member = mtool.getAuthenticatedMember()
    17 if str(member) not in ('admin','joachim') or transition is None:
    18     return
     17
     18#if str(member) not in ('admin','joachim') or transition is None:
     19#    return 'Forbidden!'
     20   
     21if not context.isSectionOfficer() or transition is None:
     22    return 'Forbidden!'   
    1923
    2024import logging
     
    3438try:
    3539    wftool.doActionFor(student,transition)
    36     logger.info('%s executes transition %s for %s' % (member,transition,student_id))
     40    logger.info('%s executed transition %s for %s' % (member,transition,student_id))
    3741except:
    3842    logger.info('%s tried to execute transition %s for %s, transition not allowed' % (member,transition,student_id))
     43    return 'Transition not allowed!'
    3944
    4045return request.RESPONSE.redirect("%s" % context.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.