- Timestamp:
- 7 Jul 2016, 06:18:06 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r14014 r14016 1176 1176 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','') 1177 1177 failed = '' 1178 emails_sent = 0 1178 1179 for referee in self.context.referees: 1179 1180 if referee.email_sent: … … 1193 1194 success = kofa_utils.inviteReferee(referee, self.context, url_info) 1194 1195 if success: 1196 emails_sent += 1 1195 1197 self.context.writeLogMessage( 1196 1198 self, 'email sent: %s' % referee.email) … … 1198 1200 else: 1199 1201 failed += '%s ' % referee.email 1200 return failed 1202 return failed, emails_sent 1201 1203 1202 1204 @action(_('Finally Submit'), warning=WARNING) … … 1218 1220 # Create mandates and send emails to referees 1219 1221 if getattr(self.context, 'referees', None): 1220 failed = self.informReferees()1222 failed, emails_sent = self.informReferees() 1221 1223 if failed: 1222 1224 self.flash( … … 1225 1227 return 1226 1228 msg = _('Form has been successfully submitted and ' 1227 'all invitation emails were sent.') 1229 '${a} invitation emails were sent.', 1230 mapping = {'a': emails_sent}) 1228 1231 IWorkflowInfo(self.context).fireTransition('submit') 1229 1232 # application_date is used in export files for sorting.
Note: See TracChangeset for help on using the changeset viewer.