Changeset 8081 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 9 Apr 2012, 15:38:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r8039 r8081 186 186 return 187 187 if self.searchtype == 'current_session': 188 self.searchterm = int(self.searchterm) 188 try: 189 self.searchterm = int(self.searchterm) 190 except ValueError: 191 self.flash('Only year dates allowed (e.g. 2011).') 192 return 189 193 self.hitlist = search(query=self.searchterm, 190 194 searchtype=self.searchtype, view=self) … … 625 629 def save(self, **data): 626 630 msave(self, **data) 631 notify(grok.ObjectModifiedEvent(self.context.__parent__)) 627 632 return 628 633 … … 1030 1035 return 1031 1036 students_utils = getUtility(IStudentsUtils) 1032 pay_details = students_utils.getPaymentDetails( 1033 p_category,student) 1037 try: 1038 pay_details = students_utils.getPaymentDetails( 1039 p_category,student) 1040 except AttributeError: 1041 self.flash( 1042 _('Study course data are incomplete.')) 1043 self.redirect(self.url(self.context)) 1044 return 1034 1045 if pay_details['error']: 1035 1046 self.flash(pay_details['error'])
Note: See TracChangeset for help on using the changeset viewer.