- Timestamp:
- 12 Oct 2023, 21:45:55 (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/browser/pages.py
r16508 r17611 26 26 SessionConfigurationManageFormPage, 27 27 ConfigurationContainerManageFormPage, 28 SourcesOverview )28 SourcesOverview, LoginPage) 29 29 from waeup.kofa.browser.layout import KofaPage 30 30 from kofacustom.nigeria.interfaces import ( … … 33 33 ICustomSessionConfigurationAdd) 34 34 from kofacustom.nigeria.interfaces import MessageFactory as _ 35 36 class NigeriaLoginPage(LoginPage): 37 """A login page, available for all objects. 38 """ 39 40 def update(self, SUBMIT=None, camefrom=None, login=None, password=None): 41 42 # Redirect to camefrom if user is still logged in. Don't show login page. 43 if camefrom and 'request_webservice' in camefrom and \ 44 self.request.principal.id != 'zope.anybody': 45 self.redirect(self.application_url() + camefrom) 46 return 47 48 super(NigeriaLoginPage, self).update(SUBMIT, camefrom, login, password) 49 35 50 36 51 class NigeriaSourcesOverview(SourcesOverview):
Note: See TracChangeset for help on using the changeset viewer.