Changeset 2961 for WAeUP_SRP/base/skins/waeup_utilities/changeRegState.py
- Timestamp:
- 19 Dec 2007, 11:16:49 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_utilities/changeRegState.py
r2194 r2961 15 15 mtool = context.portal_membership 16 16 member = 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 21 if not context.isSectionOfficer() or transition is None: 22 return 'Forbidden!' 19 23 20 24 import logging … … 34 38 try: 35 39 wftool.doActionFor(student,transition) 36 logger.info('%s execute stransition %s for %s' % (member,transition,student_id))40 logger.info('%s executed transition %s for %s' % (member,transition,student_id)) 37 41 except: 38 42 logger.info('%s tried to execute transition %s for %s, transition not allowed' % (member,transition,student_id)) 43 return 'Transition not allowed!' 39 44 40 45 return request.RESPONSE.redirect("%s" % context.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.