Changeset 3398 for WAeUP_SRP/base/skins/waeup_pins
- Timestamp:
- 1 Apr 2008, 06:28:21 (17 years ago)
- 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 18 18 19 19 request = REQUEST 20 redirect = request.RESPONSE.redirect 20 21 wftool = context.portal_workflow 21 22 mtool = context.portal_membership … … 35 36 continue 36 37 uid = res[0].pin 38 student_id = res[0].student 37 39 dict = {"pin": uid, 38 40 "student": "disabled by %s on %s" % (member,current) 39 41 } 40 42 pincat.modifyRecord(**dict) 41 logger.info('%s disabled pin %s ' % (member,uid))42 return re quest.RESPONSE.redirect("%s/campus/pins/search_pins" % context.portal_url())43 logger.info('%s disabled pin %s (%s)' % (member,uid,student_id)) 44 return 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 18 18 19 19 request = REQUEST 20 redirect = request.RESPONSE.redirect 20 21 wftool = context.portal_workflow 21 22 mtool = context.portal_membership … … 43 44 } 44 45 pincat.modifyRecord(**dict) 45 logger.info('%s enabled pin %s for student %s' % (member,uid,student_id))46 return re quest.RESPONSE.redirect("%s/campus/pins/search_pins" % context.portal_url())46 logger.info('%s enabled pin %s (%s) for student ' % (member,uid,student_id)) 47 return 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.