Changeset 1855
- Timestamp:
- 4 Jun 2007, 14:19:42 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/waeup_edit.py
r1840 r1855 51 51 comments = REQUEST.get('comments') 52 52 context.cpsdocument_notify_modification(comments=comments) 53 54 ################################################### 53 55 if False: 54 56 if context.portal_type == "StudentStudyCourse": 55 57 course = ds.get('study_course') 56 student_id = context.getStudentId()58 #student_id = context.getStudentId() 57 59 res = context.portal_catalog(portal_type='Certificate',id = course) 58 60 if res: 59 61 c_brain = res[0] 60 62 c_path = c_brain.getPath().split('/') 61 student_id = context.getStudentId()63 #student_id = context.getStudentId() 62 64 context.students_catalog.modifyRecord(id = student_id, 63 65 course = course, … … 71 73 elif context.portal_type == "StudentApplication": # disabled 72 74 entry_mode = ds.get('entry_mode') 73 student_id = context.getStudentId()75 #student_id = context.getStudentId() 74 76 context.students_catalog.modifyRecord(id = student_id, 75 77 entry_mode = entry_mode, … … 78 80 elif context.portal_type == "StudentClearance": 79 81 matric_no = ds.get('matric_no') 80 student_id = context.getStudentId()82 #student_id = context.getStudentId() 81 83 context.students_catalog.modifyRecord(id = student_id, 82 84 matric_no = matric_no, … … 89 91 email = ds.get('email') 90 92 phone = ds.get('phone') 91 student_id = context.getStudentId()93 #student_id = context.getStudentId() 92 94 #app_doc = context.application.getContent() 93 95 #jamb_sex = 'M' … … 112 114 except KeyError: 113 115 context.courses_catalog.addRecord(**dd) 116 ################################################### 117 118 114 119 if cpsdocument_edit_and_view_button is not None: 115 120 action = '' … … 120 125 args = getFormUidUrlArg(REQUEST) 121 126 122 logger.info('%s edited %s of %s' % (member,context.id,student_id))127 logger.info('%s edited %s %s of %s' % (member,context.portal_type,context.id,student_id)) 123 128 args['portal_status_message'] = psm 124 129 url = context.absolute_url() + action + '?' + urlencode(args)
Note: See TracChangeset for help on using the changeset viewer.