Changeset 8744 for main/waeup.futminna/trunk/src/waeup/futminna/interswitch
- Timestamp:
- 18 Jun 2012, 06:58:55 (13 years ago)
- Location:
- main/waeup.futminna/trunk/src/waeup/futminna
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.futminna/trunk/src/waeup/futminna
- Property svn:mergeinfo changed
/main/waeup.uniben/trunk/src/waeup/uniben merged: 8741,8743
- Property svn:mergeinfo changed
-
main/waeup.futminna/trunk/src/waeup/futminna/interswitch/browser.py
r8695 r8744 26 26 from waeup.kofa.interfaces import RETURNING, IKofaUtils 27 27 from waeup.kofa.utils.helpers import to_timezone 28 from waeup.kofa.students.browser import write_log_message29 28 from waeup.kofa.students.viewlets import ApprovePaymentActionButton as APABStudent 30 29 from waeup.kofa.applicants.viewlets import ApprovePaymentActionButton as APABApplicant … … 208 207 return 209 208 210 student = self.student = self.context. getStudent()211 certificate = getattr(s elf.student['studycourse'],'certificate',None)209 student = self.student = self.context.student 210 certificate = getattr(student['studycourse'],'certificate',None) 212 211 self.amount_auth = 100 * self.context.amount_auth 213 212 xmldict = {} … … 361 360 # self.flash(_('This ticket has already been paid.')) 362 361 # return 363 # student = self.context. getStudent()362 # student = self.context.student 364 363 # query = self.request.form 365 364 # write_log_message(self,'callback received: %s' % query) … … 415 414 self.flash(_('This ticket has already been paid.')) 416 415 return 417 student = self.context. getStudent()416 student = self.context.student 418 417 success, msg, log = query_interswitch(self.context) 419 student. loggerInfo(ob_class, log)418 student.writeLogMessage(self, log) 420 419 if not success: 421 420 self.flash(msg) … … 423 422 success, msg, log = self.context.doAfterStudentPayment() 424 423 if log is not None: 425 student. loggerInfo(ob_class, log)424 student.writeLogMessage(self, log) 426 425 self.flash(msg) 427 426 return … … 439 438 440 439 def update(self): 441 ob_class = self.__implemented__.__name__442 440 if self.context.p_state == 'paid': 443 441 self.flash(_('This ticket has already been paid.')) … … 445 443 applicant = self.context.__parent__ 446 444 success, msg, log = query_interswitch(self.context) 447 applicant. loggerInfo(ob_class, log)445 applicant.writeLogMessage(self, log) 448 446 if not success: 449 447 self.flash(msg) … … 451 449 success, msg, log = self.context.doAfterApplicantPayment() 452 450 if log is not None: 453 applicant. loggerInfo(ob_class, log)451 applicant.writeLogMessage(self, log) 454 452 self.flash(msg) 455 453 return
Note: See TracChangeset for help on using the changeset viewer.