Changeset 7621


Ignore:
Timestamp:
9 Feb 2012, 20:06:14 (13 years ago)
Author:
Henrik Bettermann
Message:

Start customization of setReturningData and getVerdictsDict.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.custom/trunk/src/waeup/custom/students/utils.py

    r7419 r7621  
    4747    grok.implements(IStudentsUtils)
    4848
     49    # not yet changed
     50    def setReturningData(self, student):
     51        student['studycourse'].current_level += 100
     52        student['studycourse'].current_session += 1
     53        verdict = student['studycourse'].current_verdict
     54        student['studycourse'].current_verdict = '0'
     55        student['studycourse'].previous_verdict = verdict
     56        return
     57
    4958    def getPaymentDetails(self, category, student):
    5059        d = {}
     
    8190            d['error'] = u'Amount could not be determined.'
    8291        return d
     92
     93    def getVerdictsDict(self):
     94        """Provide a dictionary of verdicts.
     95        """
     96        return {
     97            '0': 'not yet',
     98            'A': 'Successful student',
     99            'B': 'Student with carryover courses',
     100            'C': 'Student on probation',
     101            'D': 'Withdrawn from the faculty',
     102            'E': 'Student who were previously on probation',
     103            'F': 'Medical case',
     104            'G': 'Absent from examination',
     105            }
     106
Note: See TracChangeset for help on using the changeset viewer.