Changeset 13431 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 10 Nov 2015, 11:52:28 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r13426 r13431 1624 1624 1625 1625 def update(self, back=None, finish=None, showlog=None): 1626 if finish is not None: 1627 self.redirect(self.url(self.context, '@@import1')) 1628 return 1626 1629 if not grok.getSite()['configuration'].maintmode_enabled_by and \ 1627 1630 not self.request.principal.id == 'admin': … … 1631 1634 type='danger') 1632 1635 self.redirect(self.url(self.context)) 1633 return1634 if finish is not None:1635 self.redirect(self.url(self.context, '@@import1'))1636 1636 return 1637 1637 session = ISession(self.request)['waeup.kofa'] … … 1882 1882 self.context.logger.info('%s - maintmode enabled' % ob_class) 1883 1883 self.flash(_('Maintenance mode enabled.'), type='warning') 1884 self.redirect(self.url(self.context ))1884 self.redirect(self.url(self.context, 'import1')) 1885 1885 return 1886 1886 -
main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py
r13394 r13431 26 26 UniversityPage, FacultiesContainerPage, DatacenterPage, FacultyPage, 27 27 DepartmentPage, CoursePage, CertificatePage, CertificateCoursePage, 28 UsersContainerPage, UserManageFormPage )28 UsersContainerPage, UserManageFormPage, DatacenterImportStep1) 29 29 from waeup.kofa.browser.interfaces import ( 30 30 IFacultiesContainer, IFaculty, IDepartment, ICourse, ICertificate, … … 631 631 grok.context(IDataCenter) 632 632 grok.require('waeup.importData') 633 grok.view(Datacenter Page)633 grok.view(DatacenterImportStep1) 634 634 grok.order(7) 635 635 icon = 'actionicon_stop.png' -
main/waeup.kofa/trunk/src/waeup/kofa/doctests/batchprocessing_browser.txt
r13394 r13431 86 86 Step 1: start batch processing: 87 87 88 >>> browser.getLink(' Switch maintenance mode').click()89 >>> browser.getLink(' Process data').click()88 >>> browser.getLink('Process data').click() 89 >>> browser.getLink('Switch maintenance mode').click() 90 90 >>> button = lookup_submit_value( 91 91 ... 'select', 'faculties_zope.mgr.csv', browser) … … 100 100 'Applicant Processor', 101 101 'ApplicantsContainer Processor', 102 'Bed Processor (update only)', 102 103 'CertificateCourse Processor', 103 104 'Certificate Processor', … … 192 193 Step 1: start batch processing: 193 194 194 >>> browser.getLink(' Switch maintenance mode').click()195 >>> browser.getLink(' Process data').click()195 >>> browser.getLink('Process data').click() 196 >>> browser.getLink('Switch maintenance mode').click() 196 197 >>> button = lookup_submit_value( 197 198 ... 'select', 'departments_zope.mgr.csv', browser) … … 258 259 Step 1: start batch processing: 259 260 260 >>> browser.getLink(' Switch maintenance mode').click()261 >>> browser.getLink(' Process data').click()261 >>> browser.getLink('Process data').click() 262 >>> browser.getLink('Switch maintenance mode').click() 262 263 >>> button = lookup_submit_value( 263 264 ... 'select', 'courses_zope.mgr.csv', browser) … … 324 325 Step 1: start batch processing: 325 326 326 >>> browser.getLink(' Switch maintenance mode').click()327 >>> browser.getLink(' Process data').click()327 >>> browser.getLink('Process data').click() 328 >>> browser.getLink('Switch maintenance mode').click() 328 329 >>> button = lookup_submit_value( 329 330 ... 'select', 'certificates_zope.mgr.csv', browser) … … 391 392 Step 1: start batch processing: 392 393 393 >>> browser.getLink(' Switch maintenance mode').click()394 >>> browser.getLink(' Process data').click()394 >>> browser.getLink('Process data').click() 395 >>> browser.getLink('Switch maintenance mode').click() 395 396 >>> button = lookup_submit_value( 396 397 ... 'select', 'mycertcourses_zope.mgr.csv', browser) … … 458 459 Step 1: start batch processing: 459 460 460 >>> browser.getLink(' Switch maintenance mode').click()461 >>> browser.getLink(' Process data').click()461 >>> browser.getLink('Process data').click() 462 >>> browser.getLink('Switch maintenance mode').click() 462 463 >>> button = lookup_submit_value( 463 464 ... 'select', 'users_zope.mgr.csv', browser) … … 545 546 Step 1: start batch processing: 546 547 547 >>> browser.getLink(' Switch maintenance mode').click()548 >>> browser.getLink(' Process data').click()548 >>> browser.getLink('Process data').click() 549 >>> browser.getLink('Switch maintenance mode').click() 549 550 >>> button = lookup_submit_value( 550 551 ... 'select', 'newfaculties_zope.mgr.csv', browser) … … 609 610 610 611 >>> browser.open('http://localhost/app/datacenter') 611 >>> browser.getLink(' Switch maintenance mode').click()612 >>> browser.getLink(' Process data').click()612 >>> browser.getLink('Process data').click() 613 >>> browser.getLink('Switch maintenance mode').click() 613 614 >>> button = lookup_submit_value( 614 615 ... 'select', 'newfaculties_zope.mgr.create.pending.csv', browser) -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r13394 r13431 1387 1387 filewidget.add_file(filecontents, 'text/plain', 'students.csv') 1388 1388 self.browser.getControl(name='SUBMIT').click() 1389 self.browser.getLink('Process data').click() 1389 1390 self.browser.getLink("Switch maintenance mode").click() 1390 self.browser.getLink('Process data').click()1391 1391 button = lookup_submit_value( 1392 1392 'select', 'students_zope.mgr.csv', self.browser) … … 1414 1414 filewidget.add_file(filecontents, 'text/plain', 'studycourses.csv') 1415 1415 self.browser.getControl(name='SUBMIT').click() 1416 self.browser.getLink('Process data').click() 1416 1417 # Meanwhile maintenance mode is disabled again. 1417 1418 self.browser.getLink("Switch maintenance mode").click() 1418 self.browser.getLink('Process data').click()1419 1419 button = lookup_submit_value( 1420 1420 'select', 'studycourses_zope.mgr.csv', self.browser) -
main/waeup.kofa/trunk/src/waeup/kofa/university/tests/test_batching.py
r13427 r13431 353 353 self.assertTrue('Portal must be in maintenance mode for data import.' 354 354 in self.browser.contents) 355 self.browser.open(self.datacenter_path)356 355 self.browser.getLink("Switch").click() 357 356 self.assertTrue('Maintenance mode enabled' in self.browser.contents) … … 359 358 self.assertEqual( 360 359 self.app['configuration'].maintmode_enabled_by, 'zope.mgr') 361 self.browser.getLink('Process data').click()362 360 self.browser.getControl(name="select").click() 363 361 importerselect = self.browser.getControl(name='importer')
Note: See TracChangeset for help on using the changeset viewer.