Changeset 6841 for main/waeup.sirp/trunk
- Timestamp:
- 2 Oct 2011, 06:57:13 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/batching.py
r6837 r6841 31 31 location_fields = ['student_id',] 32 32 factory_name = 'waeup.Student' 33 34 mode = None 33 35 34 36 @property … … 82 84 factory_name = 'waeup.StudentStudyCourse' 83 85 86 mode = None 87 84 88 @property 85 89 def available_fields(self): -
main/waeup.sirp/trunk/src/waeup/sirp/students/student.py
r6839 r6841 122 122 """ 123 123 comment = 'Student record removed' 124 user = get_current_principal().id125 124 target = student.student_id 125 # In some tests we don't have a principal 126 try: 127 user = get_current_principal().id 128 except (TypeError, AttributeError): 129 return 126 130 grok.getSite()['students'].logger.info('%s - %s - %s' % ( 127 131 user, target, comment))
Note: See TracChangeset for help on using the changeset viewer.