Ignore:
Timestamp:
18 Jun 2012, 06:59:07 (12 years ago)
Author:
Henrik Bettermann
Message:

Merged with waeup.uniben 8740:HEAD.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene

  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py

    r8729 r8745  
    312312    """
    313313
    314     def loggerInfo(ob_class, comment):
     314    def writeLogMessage(view, comment):
    315315        """Adds an INFO message to the log file
    316316        """
  • main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/browser.py

    r8706 r8745  
    2626from waeup.kofa.interfaces import RETURNING, IKofaUtils
    2727from waeup.kofa.utils.helpers import to_timezone
    28 from waeup.kofa.students.browser import write_log_message
    2928from waeup.kofa.students.viewlets import ApprovePaymentActionButton as APABStudent
    3029from waeup.kofa.applicants.viewlets import ApprovePaymentActionButton as APABApplicant
     
    189188            return
    190189
    191         student = self.student = self.context.getStudent()
    192         certificate = getattr(self.student['studycourse'],'certificate',None)
     190        student = self.student = self.context.student
     191        certificate = getattr(student['studycourse'],'certificate',None)
    193192        self.amount_auth = 100 * self.context.amount_auth
    194193        xmldict = {}
     
    298297            self.flash(_('This ticket has already been paid.'))
    299298            return
    300         student = self.context.getStudent()
     299        student = self.context.student
    301300        success, msg, log = query_interswitch(self.context)
    302         student.loggerInfo(ob_class, log)
     301        student.writeLogMessage(self, log)
    303302        if not success:
    304303            self.flash(msg)
     
    306305        success, msg, log = self.context.doAfterStudentPayment()
    307306        if log is not None:
    308             student.loggerInfo(ob_class, log)
     307            student.writeLogMessage(self, log)
    309308        self.flash(msg)
    310309        return
     
    322321
    323322    def update(self):
    324         ob_class = self.__implemented__.__name__
    325323        if self.context.p_state == 'paid':
    326324            self.flash(_('This ticket has already been paid.'))
     
    328326        applicant = self.context.__parent__
    329327        success, msg, log = query_interswitch(self.context)
    330         applicant.loggerInfo(ob_class, log)
     328        applicant.writeLogMessage(self, log)
    331329        if not success:
    332330            self.flash(msg)
     
    334332        success, msg, log = self.context.doAfterApplicantPayment()
    335333        if log is not None:
    336             applicant.loggerInfo(ob_class, log)
     334            applicant.writeLogMessage(self, log)
    337335        self.flash(msg)
    338336        return
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/payments.py

    r8713 r8745  
    4343        return
    4444
    45     def getStudent(self):
     45    @property
     46    def student(self):
    4647        return self.__parent__.__parent__
    4748
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/studycourse.py

    r8485 r8745  
    3838    @property
    3939    def next_session_allowed(self):
    40         state = self.getStudent().state
     40        state = self.student.state
    4141        certificate = getattr(self, 'certificate', None)
    4242        if certificate == None:
Note: See TracChangeset for help on using the changeset viewer.