Ignore:
Timestamp:
15 Feb 2012, 10:51:53 (13 years ago)
Author:
Henrik Bettermann
Message:

Do not retrieve current principal in derived logging components. This is now done by the parent Logger class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/batching.py

    r7649 r7652  
    4242from waeup.sirp.students.workflow import  IMPORTABLE_STATES
    4343from waeup.sirp.utils.batching import BatchProcessor
    44 from waeup.sirp.utils.helpers import get_current_principal
    4544
    4645class StudentProcessor(BatchProcessor):
     
    135134        parent = self.getParent(row, site)
    136135        parent.addStudent(obj)
    137         # In some tests we don't have a students container or a user
     136        # In some tests we don't have a students container
    138137        try:
    139             user = get_current_principal()
    140             parent.logger.info('%s - %s - Student record imported' % (
    141                 user.id,obj.student_id))
     138            parent.logger.info('%s - Student record imported' % (
     139                obj.student_id))
    142140            history = IObjectHistory(obj)
    143141            history.addMessage('Student record imported')
Note: See TracChangeset for help on using the changeset viewer.