Ignore:
Timestamp:
13 Jul 2012, 06:07:07 (12 years ago)
Author:
Henrik Bettermann
Message:

local_roles should be a class attribute.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/university/faculty.py

    r8965 r8993  
    3232    grok.implements(IFaculty, IFacultyAdd)
    3333
    34     @property       # Make this method read_only and looking like an attr.
    35     def local_roles(self):
    36         return ['waeup.local.DepartmentManager',
    37                 'waeup.local.ClearanceOfficer',
    38                 'waeup.local.UGClearanceOfficer',
    39                 'waeup.local.PGClearanceOfficer',
    40                 'waeup.local.CourseAdviser100',
    41                 'waeup.local.CourseAdviser200',
    42                 'waeup.local.CourseAdviser300',
    43                 'waeup.local.CourseAdviser400',
    44                 'waeup.local.CourseAdviser500',
    45                 'waeup.local.CourseAdviser600',
    46                 ]
     34    local_roles = [
     35        'waeup.local.DepartmentManager',
     36        'waeup.local.ClearanceOfficer',
     37        'waeup.local.UGClearanceOfficer',
     38        'waeup.local.PGClearanceOfficer',
     39        'waeup.local.CourseAdviser100',
     40        'waeup.local.CourseAdviser200',
     41        'waeup.local.CourseAdviser300',
     42        'waeup.local.CourseAdviser400',
     43        'waeup.local.CourseAdviser500',
     44        'waeup.local.CourseAdviser600',
     45        ]
    4746
    4847    def __init__(self,
Note: See TracChangeset for help on using the changeset viewer.