Ignore:
Timestamp:
24 May 2019, 09:11:40 (6 years ago)
Author:
Henrik Bettermann
Message:

Implement course result validation workflow for lecturers.

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  
    5656        self.semester = semester
    5757        self.former_course = former_course
     58        self.results_validated_by = None
     59        self.results_validation_date = None
     60        self.results_validation_session = None
    5861
    5962    def traverse(self, name):
  • main/waeup.kofa/trunk/src/waeup/kofa/university/export.py

    r14511 r15422  
    116116
    117117    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')
    119121
    120122    title = _(u'Courses')
  • main/waeup.kofa/trunk/src/waeup/kofa/university/interfaces.py

    r14638 r15422  
    2121from zope import schema
    2222from zope.interface import Attribute, invariant, Invalid
    23 from waeup.kofa.interfaces import IKofaObject, IKofaContainer, validate_id
     23from waeup.kofa.interfaces import (
     24    IKofaObject, IKofaContainer, validate_id, academic_sessions_vocab)
    2425from waeup.kofa.interfaces import MessageFactory as _
    2526from waeup.kofa.university.vocabularies import (
     
    189190        )
    190191
     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        )
    191210
    192211class ICertificate(IKofaObject):
  • main/waeup.kofa/trunk/src/waeup/kofa/university/tests/test_export.py

    r14511 r15422  
    281281            result,
    282282            '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'
    285287            )
    286288        return
     
    293295            result,
    294296            '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'
    298302            )
    299303        return
     
    307311            result,
    308312            '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'
    313319            )
    314320        return
     
    321327            result,
    322328            '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'
    327335            )
    328336        return
Note: See TracChangeset for help on using the changeset viewer.