Ignore:
Timestamp:
27 Nov 2006, 20:47:26 (18 years ago)
Author:
joachim
Message:

loading of cps_portlets by generic_setup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r926 r952  
    1515from Products.WAeUP_SRP.Students import getStudentByRegNo
    1616from re import compile
    17 
    18 from zLOG import LOG, DEBUG
     17import logging
     18
     19#from zLOG import LOG, DEBUG
    1920
    2021class CPSSelectWidgetForRecord(CPSSelectWidget): ###(
     
    449450        """Validate datastructure and update datamodel."""
    450451        #import pdb;pdb.set_trace()
     452        s_logger = logging.getLogger('students_pin_usage')
    451453        widget_id = self.getWidgetId()
    452454        v = datastructure[widget_id]
     
    484486                    student = self.getStudentInfo()['student']
    485487                    s_id = student.getId()
     488                    s_logger.info("Student %s used Pin %s" % (s_id,pin))
    486489                    break
    487490                else:
     
    495498                    break
    496499                student.getContent().makeStudentMember(s_id,password=pin[4:])
     500                s_logger.info("Student %s created using Pin %s" % (s_id,pin))
    497501            break
    498502        if err:
Note: See TracChangeset for help on using the changeset viewer.