Changeset 1032 for WAeUP_SRP/trunk
- Timestamp:
- 12 Dec 2006, 10:00:51 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r1030 r1032 538 538 s_logger.info('"%s","%s", "checked admission though logged in", "%s"' % (s_id,ref,pin)) 539 539 break 540 s_logger.info('"%s","%s", "successfully used pin", "%s"' % (s_id,ref,pin)) 540 if ok == 1: 541 s_logger.info('"%s","%s", "successfully used pin", "%s"' % (s_id,ref,pin)) 542 else: 543 s_logger.info('"%s","%s", "repeatedly used pin", "%s"' % (s_id,ref,pin)) 541 544 break 542 545 else: … … 545 548 if student is None: 546 549 err = "Student not found." 547 s_logger.info('"%s","not found in admission list"' % (ref)) 550 s_logger.info('"%s","not found in admission list"' % (ref)) 548 551 break 549 552 s_id = student.getId() … … 552 555 if hasattr(self.portal_directories.students,s_id): 553 556 err = "Please login with your Student Id %s and 10-digit PIN." % s_id 554 s_logger.info('"%s","%s", "repeatedly checked admission with pin", "%s"' % (s_id,ref,pin)) 557 s_logger.info('"%s","%s", "repeatedly checked admission with pin", "%s"' % (s_id,ref,pin)) 555 558 break 556 559 else: 557 s_logger.info('"%s","%s","(non-member) repeatedly checked admission with pin", "%s"' % (s_id,ref,pin)) 560 s_logger.info('"%s","%s","(non-member) repeatedly checked admission with pin", "%s"' % (s_id,ref,pin)) 558 561 else: 559 562 err = "Unknown error" % s_id 560 s_logger.info('"%s","%s", "repeatedly activated service with pin", "%s"' % (s_id,ref,pin)) 563 s_logger.info('"%s","%s", "repeatedly activated service with pin", "%s"' % (s_id,ref,pin)) 561 564 break 562 565 try: … … 565 568 except: 566 569 err = "Please login with your Student Id %s and 10-digit PIN." % s_id 567 s_logger.info('"%s","%s", "could not be made a member with pin", "%s"' % (s_id,ref,pin)) 570 s_logger.info('"%s","%s", "could not be made a member with pin", "%s"' % (s_id,ref,pin)) 568 571 break 569 572 break -
WAeUP_SRP/trunk/profiles/default/layouts/student_clearance.xml
r1028 r1032 63 63 <element value="alr_date"/> 64 64 </property> 65 <property name="label">Exam Date (dd/mm/yyyy)</property>66 <property name="label_edit">Exam Date (dd/mm/yyyy)</property>65 <property name="label">Exam Date</property> 66 <property name="label_edit">Exam Date</property> 67 67 <property name="readonly_layout_modes"/> 68 68 <property name="hidden_layout_modes"> … … 153 153 <element value="birthday"/> 154 154 </property> 155 <property name="label">Date of Birth (dd/mm/yyyy)</property>155 <property name="label">Date of Birth</property> 156 156 <property name="label_edit">Date of Birth (dd/mm/yyyy)</property> 157 157 <property name="readonly_layout_modes"/> … … 231 231 <element value="entry_date"/> 232 232 </property> 233 <property name="label">Entry Date (dd/mm/yyyy)</property>234 <property name="label_edit">Entry Date (dd/mm/yyyy)</property>233 <property name="label">Entry Date</property> 234 <property name="label_edit">Entry Date</property> 235 235 <property name="readonly_layout_modes"> 236 236 <element value="edit"/> … … 247 247 <element value="request_date"/> 248 248 </property> 249 <property name="label">Request Date (dd/mm/yyyy)</property>250 <property name="label_edit">Request Date (dd/mm/yyyy)</property>249 <property name="label">Request Date</property> 250 <property name="label_edit">Request Date</property> 251 251 <property name="readonly_layout_modes"> 252 252 <element value="edit"/> … … 263 263 <element value="cleared_date"/> 264 264 </property> 265 <property name="label">Cleared Date (dd/mm/yyyy)</property>266 <property name="label_edit">Cleared Date (dd/mm/yyyy)</property>265 <property name="label">Cleared Date</property> 266 <property name="label_edit">Cleared Date</property> 267 267 <property name="readonly_layout_modes"> 268 268 <element value="edit"/> … … 323 323 <element value="fst_sit_date"/> 324 324 </property> 325 <property name="label">Exam Date (dd/mm/yyyy)</property>326 <property name="label_edit">Exam Date (dd/mm/yyyy)</property>325 <property name="label">Exam Date</property> 326 <property name="label_edit">Exam Date</property> 327 327 <property name="readonly_layout_modes"/> 328 328 <property name="hidden_layout_modes"> … … 637 637 <element value="scd_sit_date"/> 638 638 </property> 639 <property name="label">Exam Date (dd/mm/yyyy)</property>640 <property name="label_edit">Exam Date (dd/mm/yyyy)</property>639 <property name="label">Exam Date</property> 640 <property name="label_edit">Exam Date</property> 641 641 <property name="readonly_layout_modes"/> 642 642 <property name="hidden_layout_modes"> -
WAeUP_SRP/trunk/profiles/default/layouts/student_clearance_fe.xml
r1028 r1032 153 153 <element value="birthday"/> 154 154 </property> 155 <property name="label">Date of Birth (dd/mm/yyyy)</property>155 <property name="label">Date of Birth</property> 156 156 <property name="label_edit">Date of Birth (dd/mm/yyyy)</property> 157 157 <property name="readonly_layout_modes"/> … … 231 231 <element value="entry_date"/> 232 232 </property> 233 <property name="label">Entry Date (dd/mm/yyyy)</property>234 <property name="label_edit">Entry Date (dd/mm/yyyy)</property>233 <property name="label">Entry Date</property> 234 <property name="label_edit">Entry Date</property> 235 235 <property name="readonly_layout_modes"> 236 236 <element value="edit"/> … … 247 247 <element value="request_date"/> 248 248 </property> 249 <property name="label">Request Date (dd/mm/yyyy)</property>250 <property name="label_edit">Request Date (dd/mm/yyyy)</property>249 <property name="label">Request Date</property> 250 <property name="label_edit">Request Date</property> 251 251 <property name="readonly_layout_modes"> 252 252 <element value="edit"/> … … 263 263 <element value="cleared_date"/> 264 264 </property> 265 <property name="label">Cleared Date (dd/mm/yyyy)</property>266 <property name="label_edit">Cleared Date (dd/mm/yyyy)</property>265 <property name="label">Cleared Date</property> 266 <property name="label_edit">Cleared Date</property> 267 267 <property name="readonly_layout_modes"> 268 268 <element value="edit"/> … … 324 324 <element value="fst_sit_date"/> 325 325 </property> 326 <property name="label">Exam Date (dd/mm/yyyy)</property>326 <property name="label">Exam Date</property> 327 327 <property name="label_edit">Exam Date (dd/mm/yyyy)</property> 328 328 <property name="readonly_layout_modes"/> … … 641 641 <element value="scd_sit_date"/> 642 642 </property> 643 <property name="label">Exam Date (dd/mm/yyyy)</property>643 <property name="label">Exam Date</property> 644 644 <property name="label_edit">Exam Date (dd/mm/yyyy)</property> 645 645 <property name="readonly_layout_modes"/> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r1027 r1032 49 49 args = {} 50 50 action = "/external_clearance_edit_form" 51 if context.isStudent(): 52 action = "/clearance_edit_form" 53 51 54 if is_valid: 52 55 if cpsdocument_edit_button: 53 56 psm = "Content changed!" 54 if context.isStudent():55 action = "/clearance_edit_form"56 57 if clear_doc.clr_ac_pin == "": 57 58 res = context.portal_pins(student=member_id) … … 75 76 logger.info('"%s","repeatedly requested clearance"' % (student_id)) 76 77 psm = "You have already requested clearance!" 77 if context.isStudent():78 action = "/clearance_edit_form"79 78 else: 80 79 psm = "You must tick the acknowledgement check box before submission!" 81 if context.isStudent():82 action = "/clearance_edit_form"83 80 elif clear_and_validate_button and info['review_state'] == "clearance_requested": 84 81 logger.info('"%s","cleared","%s"' % (member_id,student_id )) -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r1025 r1032 144 144 row['s_edit_link'] = "%s/%s" % (soo.absolute_url(),se_link) 145 145 row['review_state'] = so.review_state 146 row['display'] = so.review_state in ('opened','closed',) 146 row['display'] = so.review_state in ('opened','closed',) or so.portal_type == 'StudentStudyCourse' 147 147 items.append(row) 148 148 info['items'] = items -
WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py
r1030 r1032 42 42 error = False 43 43 if session.get("clicked",None): 44 psm = 'Please wait a moment , until "Clearance started" turns green, then click on the green link'44 psm = 'Please wait a moment until "Clearance started" turns green, then click on the green link!' 45 45 error = True 46 logger.info('"%s","repeatedly pressed the clearance button"' % (info['id'])) 46 47 elif app_doc.passport is None: 47 48 psm = "You must upload your passport picture before you can start the registration process!" 48 49 error = True 50 logger.info('"%s", "tried to start clerance without passport picture"' % (info['id'])) 49 51 elif review_state == "clearance_pin_entered": 50 psm = "You have already entered a clearance pin "52 psm = "You have already entered a clearance pin!" 51 53 error = True 54 logger.info('"%s", "tried to start clearance though already started"' % (info['id'])) 52 55 elif psm == 'invalid': 53 56 psm = "Please correct your input!" 54 57 error = True 58 logger.info('"%s","entered wrong clearance pin"' % (info['id'])) 55 59 if error: 56 60 return context.clearance_pin_form(rendered = res, … … 62 66 session.set("clicked","clicked") 63 67 pin = str(ds.get('clr_ac_pin')) 64 logger.info('"%s", " entered clearancepin", "%s"' % (info['id'],pin))68 logger.info('"%s", "started clearance with pin", "%s"' % (info['id'],pin)) 65 69 wf.doActionFor(info['student'],'enter_clearance_pin') 66 70 wf.doActionFor(info['clear'],'open')
Note: See TracChangeset for help on using the changeset viewer.