Ignore:
Timestamp:
1 Apr 2008, 06:28:21 (17 years ago)
Author:
Henrik Bettermann
Message:

show psm

Location:
WAeUP_SRP/base/skins/waeup_pins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_pins/disable_pins.py

    r1568 r3398  
    1818
    1919request = REQUEST
     20redirect = request.RESPONSE.redirect
    2021wftool = context.portal_workflow
    2122mtool = context.portal_membership
     
    3536        continue
    3637    uid = res[0].pin
     38    student_id = res[0].student
    3739    dict = {"pin": uid,
    3840            "student": "disabled by %s on %s" % (member,current)
    3941            }
    4042    pincat.modifyRecord(**dict)
    41     logger.info('%s disabled pin %s' % (member,uid))
    42 return request.RESPONSE.redirect("%s/campus/pins/search_pins" % context.portal_url())
     43    logger.info('%s disabled pin %s (%s)' % (member,uid,student_id))
     44return redirect("%s/campus/pins/search_pins?portal_status_message=PIN %s has been successfully disabled!" % (context.portal_url(),uid))
  • WAeUP_SRP/base/skins/waeup_pins/enable_pins.py

    r3385 r3398  
    1818
    1919request = REQUEST
     20redirect = request.RESPONSE.redirect
    2021wftool = context.portal_workflow
    2122mtool = context.portal_membership
     
    4344            }
    4445    pincat.modifyRecord(**dict)
    45     logger.info('%s enabled pin %s for student %s' % (member,uid,student_id))
    46 return request.RESPONSE.redirect("%s/campus/pins/search_pins" % context.portal_url())
     46    logger.info('%s enabled pin %s (%s) for student ' % (member,uid,student_id))
     47return redirect("%s/campus/pins/search_pins?portal_status_message=PIN %s has been successfully (re-)enabled!" % (context.portal_url(),uid))
Note: See TracChangeset for help on using the changeset viewer.