Changeset 952 for WAeUP_SRP/trunk/Widgets.py
- Timestamp:
- 27 Nov 2006, 20:47:26 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r926 r952 15 15 from Products.WAeUP_SRP.Students import getStudentByRegNo 16 16 from re import compile 17 18 from zLOG import LOG, DEBUG 17 import logging 18 19 #from zLOG import LOG, DEBUG 19 20 20 21 class CPSSelectWidgetForRecord(CPSSelectWidget): ###( … … 449 450 """Validate datastructure and update datamodel.""" 450 451 #import pdb;pdb.set_trace() 452 s_logger = logging.getLogger('students_pin_usage') 451 453 widget_id = self.getWidgetId() 452 454 v = datastructure[widget_id] … … 484 486 student = self.getStudentInfo()['student'] 485 487 s_id = student.getId() 488 s_logger.info("Student %s used Pin %s" % (s_id,pin)) 486 489 break 487 490 else: … … 495 498 break 496 499 student.getContent().makeStudentMember(s_id,password=pin[4:]) 500 s_logger.info("Student %s created using Pin %s" % (s_id,pin)) 497 501 break 498 502 if err:
Note: See TracChangeset for help on using the changeset viewer.