Ignore:
Timestamp:
8 Dec 2006, 19:38:39 (18 years ago)
Author:
joachim
Message:

M profiles/default/schemas/student_clearance.xml
M profiles/default/layouts/student_clearance_fe.xml
M profiles/default/layouts/student_clearance.xml
M skins/waeup_student/clearance_edit.py
added fields request_date, cleared_date

M skins/waeup_student/application_edit.py
M skins/waeup_student/getStudentInfo.py
M skins/waeup_custom/logged_in.py
M Widgets.py
cleaned up logging messages

M skins/waeup_student/start_clearance.py
added logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r997 r1016  
    458458    def validate(self, datastructure, **kw):
    459459        """Validate datastructure and update datamodel."""
    460         s_logger = logging.getLogger('students_pin_usage')
     460        s_logger = logging.getLogger('Student.Pin')
    461461        widget_id = self.getWidgetId()
    462462        v = datastructure[widget_id]
     
    498498                    if self.reference == "jamb_reg_no":
    499499                        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))
    501501                        break
    502                     s_logger.info("Student %s used Pin %s" % (s_id,pin))
     502                    s_logger.info('"%s", "used", "%s"' % (ref,pin))
    503503                    break
    504504                else:
    505505                    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))
    507507                if student is None:
    508508                    err = "Student not found."
     
    513513                        if hasattr(self.portal_directories.students,s_id):
    514514                            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))
    516516                            break
    517517                        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))
    519519                    else:
    520520                        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))
    522522                        break
    523523##                if self.reference == "jamb_reg_no":
     
    529529                try:
    530530                    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))
    532532                except:
    533533                    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))
    535535                    break
    536536            break
Note: See TracChangeset for help on using the changeset viewer.