Ignore:
Timestamp:
10 Nov 2015, 11:52:28 (9 years ago)
Author:
Henrik Bettermann
Message:

Put maintenance button on DatacenterImportStep1.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/browser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r13426 r13431  
    16241624
    16251625    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
    16261629        if not grok.getSite()['configuration'].maintmode_enabled_by and \
    16271630            not self.request.principal.id == 'admin':
     
    16311634                type='danger')
    16321635            self.redirect(self.url(self.context))
    1633             return
    1634         if finish is not None:
    1635             self.redirect(self.url(self.context, '@@import1'))
    16361636            return
    16371637        session = ISession(self.request)['waeup.kofa']
     
    18821882            self.context.logger.info('%s - maintmode enabled' % ob_class)
    18831883            self.flash(_('Maintenance mode enabled.'), type='warning')
    1884         self.redirect(self.url(self.context))
     1884        self.redirect(self.url(self.context, 'import1'))
    18851885        return
    18861886
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py

    r13394 r13431  
    2626    UniversityPage, FacultiesContainerPage, DatacenterPage, FacultyPage,
    2727    DepartmentPage, CoursePage, CertificatePage, CertificateCoursePage,
    28     UsersContainerPage, UserManageFormPage)
     28    UsersContainerPage, UserManageFormPage, DatacenterImportStep1)
    2929from waeup.kofa.browser.interfaces import (
    3030    IFacultiesContainer, IFaculty, IDepartment, ICourse, ICertificate,
     
    631631    grok.context(IDataCenter)
    632632    grok.require('waeup.importData')
    633     grok.view(DatacenterPage)
     633    grok.view(DatacenterImportStep1)
    634634    grok.order(7)
    635635    icon = 'actionicon_stop.png'
Note: See TracChangeset for help on using the changeset viewer.