Ignore:
Timestamp:
19 May 2011, 19:40:10 (13 years ago)
Author:
Henrik Bettermann
Message:

Revert r6151. The ContainerManageFormPage? does not make sense. Its code cannot be reused.

Implement local role assignment on DepartmentManageFormPage?.

There is a lot of recurring code in pages.py. I have no ideas how to reuse the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/university/department.py

    r5988 r6152  
    1313    grok.implements(IDepartment, IDepartmentAdd)
    1414
     15    @property       # Make this method read_only and looking like an attr.
     16    def local_roles(cls):
     17        return [
     18            {'name':'waeup.local.DepartmentOfficer',
     19             'title':'Department Officer'},
     20            ]
     21
    1522    # A simple counter for ids.
    1623    next_id = 0L
    17    
     24
    1825    def __init__(self,
    1926                 title=u'Unnamed Department',
Note: See TracChangeset for help on using the changeset viewer.