Changeset 6154 for main/waeup.sirp/trunk/src/waeup/sirp/browser
- Timestamp:
- 20 May 2011, 04:35:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.