Changeset 8745
- Timestamp:
- 18 Jun 2012, 06:59:07 (12 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene
- Property svn:mergeinfo changed
/main/waeup.uniben/trunk/src/waeup/uniben merged: 8741,8743
- Property svn:mergeinfo changed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py
r8729 r8745 312 312 """ 313 313 314 def loggerInfo(ob_class, comment):314 def writeLogMessage(view, comment): 315 315 """Adds an INFO message to the log file 316 316 """ -
main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/browser.py
r8706 r8745 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 … … 189 188 return 190 189 191 student = self.student = self.context. getStudent()192 certificate = getattr(s elf.student['studycourse'],'certificate',None)190 student = self.student = self.context.student 191 certificate = getattr(student['studycourse'],'certificate',None) 193 192 self.amount_auth = 100 * self.context.amount_auth 194 193 xmldict = {} … … 298 297 self.flash(_('This ticket has already been paid.')) 299 298 return 300 student = self.context. getStudent()299 student = self.context.student 301 300 success, msg, log = query_interswitch(self.context) 302 student. loggerInfo(ob_class, log)301 student.writeLogMessage(self, log) 303 302 if not success: 304 303 self.flash(msg) … … 306 305 success, msg, log = self.context.doAfterStudentPayment() 307 306 if log is not None: 308 student. loggerInfo(ob_class, log)307 student.writeLogMessage(self, log) 309 308 self.flash(msg) 310 309 return … … 322 321 323 322 def update(self): 324 ob_class = self.__implemented__.__name__325 323 if self.context.p_state == 'paid': 326 324 self.flash(_('This ticket has already been paid.')) … … 328 326 applicant = self.context.__parent__ 329 327 success, msg, log = query_interswitch(self.context) 330 applicant. loggerInfo(ob_class, log)328 applicant.writeLogMessage(self, log) 331 329 if not success: 332 330 self.flash(msg) … … 334 332 success, msg, log = self.context.doAfterApplicantPayment() 335 333 if log is not None: 336 applicant. loggerInfo(ob_class, log)334 applicant.writeLogMessage(self, log) 337 335 self.flash(msg) 338 336 return -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/payments.py
r8713 r8745 43 43 return 44 44 45 def getStudent(self): 45 @property 46 def student(self): 46 47 return self.__parent__.__parent__ 47 48 -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/studycourse.py
r8485 r8745 38 38 @property 39 39 def next_session_allowed(self): 40 state = self. getStudent().state40 state = self.student.state 41 41 certificate = getattr(self, 'certificate', None) 42 42 if certificate == None:
Note: See TracChangeset for help on using the changeset viewer.