Changeset 15422 for main/waeup.kofa/trunk/src/waeup/kofa/university
- Timestamp:
- 24 May 2019, 09:11:40 (6 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/university
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/course.py
r10685 r15422 56 56 self.semester = semester 57 57 self.former_course = former_course 58 self.results_validated_by = None 59 self.results_validation_date = None 60 self.results_validation_session = None 58 61 59 62 def traverse(self, name): -
main/waeup.kofa/trunk/src/waeup/kofa/university/export.py
r14511 r15422 116 116 117 117 fields = ('code', 'faculty_code', 'department_code', 'title', 'credits', 118 'passmark', 'semester', 'users_with_local_roles', 'former_course') 118 'passmark', 'semester', 'users_with_local_roles', 'former_course', 119 'results_validated_by', 'results_validation_date', 120 'results_validation_session') 119 121 120 122 title = _(u'Courses') -
main/waeup.kofa/trunk/src/waeup/kofa/university/interfaces.py
r14638 r15422 21 21 from zope import schema 22 22 from zope.interface import Attribute, invariant, Invalid 23 from waeup.kofa.interfaces import IKofaObject, IKofaContainer, validate_id 23 from waeup.kofa.interfaces import ( 24 IKofaObject, IKofaContainer, validate_id, academic_sessions_vocab) 24 25 from waeup.kofa.interfaces import MessageFactory as _ 25 26 from waeup.kofa.university.vocabularies import ( … … 189 190 ) 190 191 192 results_validated_by = schema.TextLine( 193 title = _(u'Results validated by'), 194 default = None, 195 required = False, 196 ) 197 198 results_validation_date = schema.Datetime( 199 title = _(u'Results validation date'), 200 required = False, 201 readonly = False, 202 ) 203 204 results_validation_session = schema.Choice( 205 title = _(u'Results validation session'), 206 source = academic_sessions_vocab, 207 required = False, 208 readonly = False, 209 ) 191 210 192 211 class ICertificate(IKofaObject): -
main/waeup.kofa/trunk/src/waeup/kofa/university/tests/test_export.py
r14511 r15422 281 281 result, 282 282 'code,faculty_code,department_code,title,credits,' 283 'passmark,semester,users_with_local_roles,former_course\r\n' 284 'C1,F1,D1,Cheese Basics,0,40,1,[],0\r\n' 283 'passmark,semester,users_with_local_roles,former_course,' 284 'results_validated_by,results_validation_date,' 285 'results_validation_session\r\n' 286 'C1,F1,D1,Cheese Basics,0,40,1,[],0,,,\r\n' 285 287 ) 286 288 return … … 293 295 result, 294 296 'code,faculty_code,department_code,title,credits,passmark,' 295 'semester,users_with_local_roles,former_course\r\n' 296 'C1,F1,D1,Cheese Basics,0,40,1,[],0\r\n' 297 'C2,F1,D1,Advanced Cheese Making,0,40,1,[],0\r\n' 297 'semester,users_with_local_roles,former_course,' 298 'results_validated_by,results_validation_date,' 299 'results_validation_session\r\n' 300 'C1,F1,D1,Cheese Basics,0,40,1,[],0,,,\r\n' 301 'C2,F1,D1,Advanced Cheese Making,0,40,1,[],0,,,\r\n' 298 302 ) 299 303 return … … 307 311 result, 308 312 'code,faculty_code,department_code,title,credits,passmark,' 309 'semester,users_with_local_roles,former_course\r\n' 310 'C1,F1,D1,Cheese Basics,0,40,1,[],0\r\n' 311 'C2,F1,D1,Advanced Cheese Making,0,40,1,[],0\r\n' 312 'C3,F1,D2,Selling Cheese,0,40,1,[],0\r\n' 313 'semester,users_with_local_roles,former_course,' 314 'results_validated_by,results_validation_date,' 315 'results_validation_session\r\n' 316 'C1,F1,D1,Cheese Basics,0,40,1,[],0,,,\r\n' 317 'C2,F1,D1,Advanced Cheese Making,0,40,1,[],0,,,\r\n' 318 'C3,F1,D2,Selling Cheese,0,40,1,[],0,,,\r\n' 313 319 ) 314 320 return … … 321 327 result, 322 328 'code,faculty_code,department_code,title,credits,passmark,' 323 'semester,users_with_local_roles,former_course\r\n' 324 'C1,F1,D1,Cheese Basics,0,40,1,[],0\r\n' 325 'C2,F1,D1,Advanced Cheese Making,0,40,1,[],0\r\n' 326 'C3,F1,D2,Selling Cheese,0,40,1,[],0\r\n' 329 'semester,users_with_local_roles,former_course,' 330 'results_validated_by,results_validation_date,' 331 'results_validation_session\r\n' 332 'C1,F1,D1,Cheese Basics,0,40,1,[],0,,,\r\n' 333 'C2,F1,D1,Advanced Cheese Making,0,40,1,[],0,,,\r\n' 334 'C3,F1,D2,Selling Cheese,0,40,1,[],0,,,\r\n' 327 335 ) 328 336 return
Note: See TracChangeset for help on using the changeset viewer.