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

Convert function set_returning_data into utility method. This method is for demonstration purposes only. It has to be customized.

File:
1 edited

Legend:

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

    r7511 r7615  
    8282    return sid
    8383
    84 def set_returning_data(student):
    85     student['studycourse'].current_level += 100
    86     student['studycourse'].current_session += 1
    87     verdict = student['studycourse'].current_verdict
    88     student['studycourse'].current_verdict = '0'
    89     student['studycourse'].previous_verdict = verdict
    90     return
    91 
    9284def set_up_widgets(view, ignore_request=False):
    9385    view.adapters = {}
     
    172164    grok.implements(IStudentsUtils)
    173165
    174     def getPaymentDetails(self,category, student):
     166    def setReturningData(self, student):
     167        student['studycourse'].current_level += 100
     168        student['studycourse'].current_session += 1
     169        verdict = student['studycourse'].current_verdict
     170        student['studycourse'].current_verdict = '0'
     171        student['studycourse'].previous_verdict = verdict
     172        return
     173
     174    def getPaymentDetails(self, category, student):
    175175        d = {}
    176176        d['p_item'] = u''
Note: See TracChangeset for help on using the changeset viewer.