Ignore:
Timestamp:
24 Nov 2011, 11:31:04 (13 years ago)
Author:
Henrik Bettermann
Message:

Rename functions according to the WAeUP style guide:

functions and methods with property decorator with underscore

methods with CamelCase

File:
1 edited

Legend:

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

    r7184 r7186  
    3737    ISessionConfiguration, ISessionConfigurationAdd, academic_sessions_vocab,
    3838    IPasswordValidator)
    39 from waeup.sirp.permissions import get_users_with_local_roles, getAllRoles
     39from waeup.sirp.permissions import get_users_with_local_roles, get_all_roles
    4040from waeup.sirp.university.catalog import search
    4141from waeup.sirp.university.vocabularies import course_levels
     
    266266        site_url = self.url(grok.getSite())
    267267        for local_role in local_roles.keys():
    268             role_title = dict(getAllRoles())[local_role].title
     268            role_title = dict(get_all_roles())[local_role].title
    269269            objects_string = ''
    270270            for object in local_roles[local_role]:
     
    279279        site_roles_string = ''
    280280        for site_role in site_roles:
    281             role_title = dict(getAllRoles())[site_role].title
     281            role_title = dict(get_all_roles())[site_role].title
    282282            site_roles_string += '%s <br />' % role_title
    283283        return site_roles_string
     
    385385        local_roles_userfriendly = {}
    386386        for local_role in local_roles:
    387             role_title = dict(getAllRoles())[local_role].title
     387            role_title = dict(get_all_roles())[local_role].title
    388388            local_roles_userfriendly[role_title] = local_roles[local_role]
    389389        return local_roles_userfriendly
     
    394394        site_roles_userfriendly = []
    395395        for site_role in site_roles:
    396             role_title = dict(getAllRoles())[site_role].title
     396            role_title = dict(get_all_roles())[site_role].title
    397397            site_roles_userfriendly.append(role_title)
    398398        return site_roles_userfriendly
Note: See TracChangeset for help on using the changeset viewer.