Changeset 7948 for main/waeup.kofa/trunk/src
- Timestamp:
- 22 Mar 2012, 03:18:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/student.py
r7819 r7948 117 117 @property 118 118 def current_session(self): 119 session = getattr(self.get('studycourse', None), 'current_session', None) 119 session = getattr( 120 self.get('studycourse', None), 'current_session', None) 120 121 return session 121 122 122 123 @property 123 124 def current_mode(self): 124 certificate = getattr(self.get('studycourse', None), 'certificate', None) 125 certificate = getattr( 126 self.get('studycourse', None), 'certificate', None) 125 127 if certificate is not None: 126 128 return certificate.study_mode … … 150 152 def handle_student_added(student, event): 151 153 """If a student is added all subcontainers are automatically added 152 and the transition create is fired. The latter produces a logging message. 154 and the transition create is fired. The latter produces a logging 155 message. 153 156 """ 154 157 reg_state = IWorkflowState(student).getState() … … 246 249 stud_id = self.context.student_id 247 250 marked_filename = '__%s__%s/%s/%s_%s%s' % ( 248 STUDENT_FILE_STORE_NAME, stud_id[0], stud_id, basename, stud_id, ext) 251 STUDENT_FILE_STORE_NAME, stud_id[0], stud_id, basename, 252 stud_id, ext) 249 253 return marked_filename 250 254
Note: See TracChangeset for help on using the changeset viewer.