Changeset 1589
- Timestamp:
- 19 Mar 2007, 13:27:39 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/register_courses.py
r1583 r1589 40 40 logger.info('%s WorkflowException %s for %s' % (member_id,E,student_id)) 41 41 return request.RESPONSE.redirect("%s" % context.absolute_url()) 42 logger.info('%s registered course list for%s' % (member_id,student_id))42 logger.info('%s registered course list of %s' % (member_id,student_id)) 43 43 return request.RESPONSE.redirect("%s" % context.absolute_url()) -
WAeUP_SRP/trunk/skins/waeup_student/reject_courses.py
r1588 r1589 12 12 close the Students StudyLevel 13 13 """ 14 from Products.CMFCore.WorkflowCore import WorkflowException 14 15 try: 15 16 from Products.zdb import set_trace … … 29 30 wftool.doActionFor(context,'close_for_edit') 30 31 students_folder = context.portal_url.getPortalObject().campus.students 31 student = getattr(students_folder,context.getStudentId()) 32 wftool.doActionFor(student,'reject_courses') 33 logger.info('%s rejected course list of %s' % (member,student.getId())) 32 student_id = context.getStudentId() 33 student = getattr(students_folder,student_id) 34 try: 35 wftool.doActionFor(student,'reject_courses') 36 except WorkflowException,E: 37 logger.info('%s WorkflowException %s for %s' % (member_id,E,student_id)) 38 return request.RESPONSE.redirect("%s" % context.absolute_url()) 39 logger.info('%s rejected course list of %s' % (member_id,student_id)) 34 40 35 41 args = {} … … 42 48 url = context.absolute_url() + '/' + action_after_reject + '?' + urlencode(args) 43 49 return REQUEST.RESPONSE.redirect(url) 44 45 #return request.RESPONSE.redirect("%s" % context.absolute_url()) -
WAeUP_SRP/trunk/skins/waeup_student/validate_courses.py
r1588 r1589 12 12 close the Students StudyLevel 13 13 """ 14 from Products.CMFCore.WorkflowCore import WorkflowException 14 15 try: 15 16 from Products.zdb import set_trace … … 27 28 wftool = context.portal_workflow 28 29 students_folder = context.portal_url.getPortalObject().campus.students 29 student = getattr(students_folder,context.getStudentId()) 30 wftool.doActionFor(student,'validate_courses') 31 logger.info('%s validated course list of %s' % (member,student.getId())) 30 student_id = context.getStudentId() 31 student = getattr(students_folder,student_id) 32 try: 33 wftool.doActionFor(student,'validate_courses') 34 except WorkflowException,E: 35 logger.info('%s WorkflowException %s for %s' % (member_id,E,student_id)) 36 return request.RESPONSE.redirect("%s" % context.absolute_url()) 37 logger.info('%s validated course list of %s' % (member_id,student_id)) 32 38 33 39 psm = 'portal_status_message=Course list validated!' 34 40 url = context.absolute_url() + '/' + action_after_validate + '?' + psm 35 41 return request.RESPONSE.redirect(url) 36 37
Note: See TracChangeset for help on using the changeset viewer.