Changeset 1016 for WAeUP_SRP/trunk/Widgets.py
- Timestamp:
- 8 Dec 2006, 19:38:39 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r997 r1016 458 458 def validate(self, datastructure, **kw): 459 459 """Validate datastructure and update datamodel.""" 460 s_logger = logging.getLogger(' students_pin_usage')460 s_logger = logging.getLogger('Student.Pin') 461 461 widget_id = self.getWidgetId() 462 462 v = datastructure[widget_id] … … 498 498 if self.reference == "jamb_reg_no": 499 499 err = "You are already logged in." 500 s_logger.info( "Student %s logged in used Pin %s"% (ref,pin))500 s_logger.info('"%s", "logged in", "%s"' % (ref,pin)) 501 501 break 502 s_logger.info( "Student %s used Pin %s" % (s_id,pin))502 s_logger.info('"%s", "used", "%s"' % (ref,pin)) 503 503 break 504 504 else: 505 505 student = getStudentByRegNo(self,ref) 506 s_logger.info( "Student RegNo %s used Pin %s"% (ref,pin))506 s_logger.info('"jamb_reg_no:%s","used","%s"' % (ref,pin)) 507 507 if student is None: 508 508 err = "Student not found." … … 513 513 if hasattr(self.portal_directories.students,s_id): 514 514 err = "Please login with your Student Id %s and 10-digit PIN." % s_id 515 s_logger.info( "Student %s double used Pin %s"% (s_id,pin))515 s_logger.info('"%s", "double used", "%s"' % (s_id,pin)) 516 516 break 517 517 else: 518 s_logger.info( "Student not Member %s double used Pin %s"% (s_id,pin))518 s_logger.info('"%s","notmember double used", "%s"' % (s_id,pin)) 519 519 else: 520 520 err = "Please login with your Student Id %s and 10-digit PIN." % s_id 521 s_logger.info( "Student %s double used Pin %s"% (s_id,pin))521 s_logger.info('"%s", "double used", "%s"' % (s_id,pin)) 522 522 break 523 523 ## if self.reference == "jamb_reg_no": … … 529 529 try: 530 530 student.getContent().makeStudentMember(s_id,password=pin[4:]) 531 s_logger.info( "Student %s created using Pin %s"% (s_id,pin))531 s_logger.info('"%s", "created using", "%s"' % (s_id,pin)) 532 532 except: 533 533 err = "Please login with your Student Id %s and 10-digit PIN." % s_id 534 s_logger.info( "Student %s double creation with Pin %s"% (s_id,ref))534 s_logger.info('"%s", "double creation", "%s"' % (s_id,ref)) 535 535 break 536 536 break
Note: See TracChangeset for help on using the changeset viewer.