Ignore:
Timestamp:
20 May 2011, 04:35:59 (14 years ago)
Author:
Henrik Bettermann
Message:

add_local_role instead of AddLocalRole? because it's a function.

File:
1 edited

Legend:

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

    r6152 r6154  
    1414from hurry.workflow.interfaces import NoTransitionAvailableError
    1515from 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)
     16from zope.authentication.interfaces import (
     17    IAuthentication, IUnauthenticatedPrincipal, ILogout)
    2318from zope.securitypolicy.interfaces import (
    2419    IPrincipalRoleManager, IPrincipalRoleMap)
     
    4843grok.templatedir('templates')
    4944
    50 def addLocalRole(view, tab, **data):
     45def add_local_role(view, tab, **data):
    5146    form = view.request.form
    5247    localrole = form['local_role']
     
    10221017    @grok.action('Add local role', validator=NullValidator)
    10231018    def addLocalRole(self, **data):
    1024         return addLocalRole(self, '3', **data)
     1019        return add_local_role(self, '3', **data)
    10251020
    10261021class DepartmentAddFormPage(WAeUPAddFormPage):
     
    12091204    @grok.action('Add local role', validator=NullValidator)
    12101205    def addLocalRole(self, **data):
    1211         return addLocalRole(self, 4, **data)
     1206        return add_local_role(self, 4, **data)
    12121207
    12131208class CourseAddFormPage(WAeUPAddFormPage):
Note: See TracChangeset for help on using the changeset viewer.