Changeset 3795 for WAeUP_SRP/trunk/skins/waeup_utilities/changeRegState.py
- Timestamp:
- 1 Dec 2008, 12:21:08 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/changeRegState.py
r2961 r3795 29 29 30 30 request = context.REQUEST 31 students = context.portal_url.getPortalObject().campus.students31 #students = context.portal_url.getPortalObject().campus.students 32 32 wftool = context.portal_workflow 33 33 student_id = context.getStudentId() 34 context_doc = context 34 35 if student_id is None: 35 36 return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 36 37 student = getattr(students,student_id) 37 #student = getattr(students,student_id) 38 #context_doc = student 38 39 try: 39 wftool.doActionFor( student,transition)40 wftool.doActionFor(context_doc,transition) 40 41 logger.info('%s executed transition %s for %s' % (member,transition,student_id)) 41 42 except:
Note: See TracChangeset for help on using the changeset viewer.