Changeset 8993 for main/waeup.kofa/trunk


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

local_roles should be a class attribute.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/container.py

    r8665 r8993  
    5151    description_dict = {}
    5252
    53     @property
    54     def local_roles(self):
    55         return []
     53    local_roles = []
    5654
    5755    def archive(self, app_ids=None):
  • main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.py

    r8967 r8993  
    3636    grok.implements(ICertificate, ICertificateAdd)
    3737
    38     @property       # Make this method read_only and looking like an attr.
    39     def local_roles(self):
    40         return ['waeup.local.CourseAdviser100',
    41                 'waeup.local.CourseAdviser200',
    42                 'waeup.local.CourseAdviser300',
    43                 'waeup.local.CourseAdviser400',
    44                 'waeup.local.CourseAdviser500',
    45                 'waeup.local.CourseAdviser600',
    46                 ]
     38    local_roles = [
     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, code=u'NA', title=u'Unnamed Certificate',
  • main/waeup.kofa/trunk/src/waeup/kofa/university/department.py

    r8965 r8993  
    3232    grok.implements(IDepartment, IDepartmentAdd)
    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    # A simple counter for ids.
  • 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.