Changeset 6154


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

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

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  
    55## $Id$
    66##
    7 ## Copyright (C) 2011 Uli Fouquet
     7## Copyright (C) 2011 Uli Fouquet, Henrik Bettermann
    88## This program is free software; you can redistribute it and/or modify
    99## 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  
    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.