Changeset 14951
- Timestamp:
- 9 Feb 2018, 18:49:18 (7 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r14950 r14951 5 5 ======================= 6 6 7 * Display applicant id and error messages in flash message box if 8 student creation has failed. 7 * Add 'Student Record Creation' Report page. 9 8 10 9 * Add `CreateStudents` permission and `StudentsCreator` role. -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r14949 r14951 685 685 return 686 686 687 class CreateAllStudentsPage( UtilityView, grok.View):687 class CreateAllStudentsPage(KofaPage): 688 688 """Create all student objects from applicant data 689 689 in the root container or in a specific applicants container only. … … 693 693 grok.name('createallstudents') 694 694 grok.require('waeup.createStudents') 695 label = _('Student Record Creation Report') 695 696 696 697 def update(self): … … 716 717 created.append(result.applicant_id) 717 718 else: 718 failed.append('%s (%s)' % (result.applicant_id, msg)) 719 failed.append( 720 (result.applicant_id, self.url(result, 'manage'), msg)) 719 721 ob_class = self.__implemented__.__name__.replace( 720 722 'waeup.kofa.','') 721 723 applicants_root.logger.info( 722 724 '%s - %s - %s' % (ob_class, result.applicant_id, msg)) 725 723 726 grok.getSite()['configuration'].maintmode_enabled_by = None 724 if len(created): 725 self.flash(_('${a} students successfully created.', 726 mapping = {'a': len(created)})) 727 if len(failed): 728 self.flash(_('Student creation failed: ${a}', 729 mapping = {'a':', '.join(failed)}), type='danger') 730 if not len(created) and not len(failed): 731 self.flash(_('No record found.'), type='warning') 732 self.redirect(self.url(self.context)) 733 return 734 735 def render(self): 736 return 727 self.successful = ', '.join(created) 728 self.failed = failed 729 return 730 737 731 738 732 class ApplicationFeePaymentAddPage(UtilityView, grok.View):
Note: See TracChangeset for help on using the changeset viewer.