- Timestamp:
- 20 May 2011, 04:35:59 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/permissions.py
r6044 r6154 5 5 ## $Id$ 6 6 ## 7 ## Copyright (C) 2011 Uli Fouquet 7 ## Copyright (C) 2011 Uli Fouquet, Henrik Bettermann 8 8 ## This program is free software; you can redistribute it and/or modify 9 9 ## it under the terms of the GNU General Public License as published by -
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r6152 r6154 14 14 from hurry.workflow.interfaces import NoTransitionAvailableError 15 15 from zope import schema 16 try: 17 from zope.authentication.interfaces import ( 18 IAuthentication, IUnauthenticatedPrincipal, ILogout) 19 except ImportError: 20 # BBB 21 from zope.app.security.interfaces import ( 22 IAuthentication, IUnauthenticatedPrincipal, ILogout) 16 from zope.authentication.interfaces import ( 17 IAuthentication, IUnauthenticatedPrincipal, ILogout) 23 18 from zope.securitypolicy.interfaces import ( 24 19 IPrincipalRoleManager, IPrincipalRoleMap) … … 48 43 grok.templatedir('templates') 49 44 50 def add LocalRole(view, tab, **data):45 def add_local_role(view, tab, **data): 51 46 form = view.request.form 52 47 localrole = form['local_role'] … … 1022 1017 @grok.action('Add local role', validator=NullValidator) 1023 1018 def addLocalRole(self, **data): 1024 return add LocalRole(self, '3', **data)1019 return add_local_role(self, '3', **data) 1025 1020 1026 1021 class DepartmentAddFormPage(WAeUPAddFormPage): … … 1209 1204 @grok.action('Add local role', validator=NullValidator) 1210 1205 def addLocalRole(self, **data): 1211 return add LocalRole(self, 4, **data)1206 return add_local_role(self, 4, **data) 1212 1207 1213 1208 class CourseAddFormPage(WAeUPAddFormPage):
Note: See TracChangeset for help on using the changeset viewer.