Changeset 17550 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 18 Aug 2023, 04:24:57 (17 months ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r17245 r17550 755 755 756 756 def update(self): 757 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','') 758 applicants_root = grok.getSite()['applicants'] 757 759 grok.getSite()['configuration'].maintmode_enabled_by = u'admin' 760 applicants_root.logger.info('%s - started in %s' % ( 761 ob_class, self.context.__name__)) 758 762 transaction.commit() 759 763 # Wait 10 seconds for all transactions to be finished. … … 778 782 failed.append( 779 783 (result.applicant_id, self.url(result, 'manage'), msg)) 780 ob_class = self.__implemented__.__name__.replace(781 'waeup.kofa.','')782 784 grok.getSite()['configuration'].maintmode_enabled_by = None 783 785 self.successful = ', '.join(created) 784 786 self.failed = failed 787 applicants_root.logger.info('%s - created in %s: %s' % ( 788 ob_class, self.context.__name__, self.successful)) 785 789 return 786 790 … … 1403 1407 site = grok.getSite() 1404 1408 kofa_utils = getUtility(IKofaUtils) 1405 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')1406 1409 failed = '' 1407 1410 emails_sent = 0 … … 1890 1893 site = grok.getSite() 1891 1894 kofa_utils = getUtility(IKofaUtils) 1892 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')1893 1895 failed = '' 1894 1896 emails_sent = 0 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicantcopier.py
r16545 r17550 304 304 self.assertFalse('Failed records' in self.browser.contents) 305 305 self.assertTrue('Successfully created records' in self.browser.contents) 306 logcontent = open(logfile).read() 307 self.assertTrue('applicants.browser.CreateAllStudentsPage - started in app2021' 308 in logcontent) 309 self.assertTrue('%s - Student record created (K1000000)' % self.applicant.applicant_id 310 in logcontent) 311 self.assertTrue('applicants.browser.CreateAllStudentsPage - created in app2021: %s' % self.applicant.applicant_id 312 in logcontent) 306 313 307 314 def test_hidden_batch_copying_all(self): … … 321 328 self.browser.open(self.root_path + '/createallstudents') 322 329 self.assertTrue('Successfully created records:' in self.browser.contents) 330 logcontent = open(logfile).read() 331 self.assertTrue('applicants.browser.CreateAllStudentsPage - started in applicants' 332 in logcontent) 333 self.assertTrue('%s - Student record created (K1000000)' % self.applicant.applicant_id 334 in logcontent) 335 self.assertTrue('applicants.browser.CreateAllStudentsPage - created in applicants: %s' % self.applicant.applicant_id 336 in logcontent) 323 337 324 338 def test_copier_wo_passport(self):
Note: See TracChangeset for help on using the changeset viewer.