- Timestamp:
- 15 Feb 2012, 10:51:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py
r7438 r7652 33 33 IExtFileStore, IPDF, IUserAccount) 34 34 from waeup.sirp.students.vocabularies import RegNumNotInSource 35 from waeup.sirp.utils.helpers import attrs_to_fields , get_current_principal35 from waeup.sirp.utils.helpers import attrs_to_fields 36 36 from waeup.sirp.applicants.interfaces import IApplicant, IApplicantEdit 37 37 … … 314 314 comment = 'Applicant record removed' 315 315 target = applicant.applicant_id 316 # In some tests we don't have a principal317 316 try: 318 user = get_current_principal().id 319 except (TypeError, AttributeError): 320 return 321 try: 322 grok.getSite()['applicants'].logger.info('%s - %s - %s' % ( 323 user, target, comment)) 317 grok.getSite()['applicants'].logger.info('%s - %s' % ( 318 target, comment)) 324 319 except KeyError: 325 320 # If we delete an entire university instance there won't be
Note: See TracChangeset for help on using the changeset viewer.