Ignore:
Timestamp:
21 Sep 2013, 08:27:47 (11 years ago)
Author:
Henrik Bettermann
Message:

Disable score editing on department manage page.

Add tests.

File:
1 edited

Legend:

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

    r10561 r10634  
    2828from waeup.kofa.utils.batching import VirtualExportJobContainer
    2929from waeup.kofa.interfaces import IKofaUtils
     30from waeup.kofa.utils.helpers import attrs_to_fields
    3031from waeup.kofa.university.interfaces import IDepartment, IDepartmentAdd
    3132
     
    8990        return longtitle(self)
    9091
     92# Set all attributes of Department required in IDepartment as field
     93# properties. Doing this, we do not have to set initial attributes
     94# ourselves and as a bonus we get free validation when an attribute is
     95# set.
     96Department = attrs_to_fields(Department)
     97
    9198class DepartmentFactory(grok.GlobalUtility):
    9299    """A factory for department containers.
Note: See TracChangeset for help on using the changeset viewer.