Changeset 2161 for WAeUP_SRP/trunk
- Timestamp:
- 24 Aug 2007, 14:23:50 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py
r2160 r2161 62 62 if not object['passport']: 63 63 object['passport'] = '' 64 if object['status'] == "submitted":64 if 'submitted' in object['status']: 65 65 submitted = True 66 66 if not create and (pin != object['pin'] and not context.isSectionOfficer()): … … 133 133 psm = "You successfully applied for PUME!" 134 134 data['application_date'] = current 135 data['status'] = "submitted" 135 if object['status'] == 'edited': 136 data['status'] = "submitted" 137 logger.info('%s/%s modified and submitted application record' % (member,reg_no)) 138 elif object['status'] == 'reset': 139 data['status'] = 'resubmitted on %s' % DateTime.DateTime().strftime('%A, %B %d, %Y') 140 logger.info('%s/%s modified and resubmitted application record' % (member,reg_no)) 141 object['status'] = data['status'] 136 142 context.applicants_catalog.modifyRecord(**data) 137 logger.info('%s/%s modified and submitted application record' % (member,reg_no))143 138 144 res,psm_dummy,ds = lt.renderLayout(layout_id= 'application', 139 145 schema_id= 'application', … … 182 188 logger.info('%s/%s modified application record' % (member,reg_no)) 183 189 184 elif manage: 190 elif manage: 185 191 if submitted: 186 192 mode = "view" … … 201 207 202 208 203 try: 209 try: 204 210 passport_uploaded = bool(data['passport']) 205 211 except: -
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_manage.py
r2160 r2161 54 54 data['reg_no'] = reg_no 55 55 psm = "You successfully reset the record! The applicant will be able to edit and resubmit the data." 56 data['status'] = " edited"56 data['status'] = "reset" 57 57 context.applicants_catalog.modifyRecord(**data) 58 58 logger.info('%s reset application record of %s' % (member,reg_no)) -
WAeUP_SRP/trunk/skins/waeup_student/apply_pume_manage_form.pt
r2160 r2161 51 51 name="reset" 52 52 value="Reset" 53 tal:condition="python: ds['status'] == 'submitted'"53 tal:condition="python: 'submitted' in ds['status']" 54 54 /> 55 55 <br /><br />
Note: See TracChangeset for help on using the changeset viewer.