Changeset 10634 for main/waeup.kofa/trunk/src/waeup/kofa/university
- Timestamp:
- 21 Sep 2013, 08:27:47 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/university
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/department.py
r10561 r10634 28 28 from waeup.kofa.utils.batching import VirtualExportJobContainer 29 29 from waeup.kofa.interfaces import IKofaUtils 30 from waeup.kofa.utils.helpers import attrs_to_fields 30 31 from waeup.kofa.university.interfaces import IDepartment, IDepartmentAdd 31 32 … … 89 90 return longtitle(self) 90 91 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. 96 Department = attrs_to_fields(Department) 97 91 98 class DepartmentFactory(grok.GlobalUtility): 92 99 """A factory for department containers. -
main/waeup.kofa/trunk/src/waeup/kofa/university/interfaces.py
r10185 r10634 103 103 ) 104 104 105 score_editing_disabled = schema.Bool( 106 title = _(u'Score editing disabled'), 107 description = _( 108 u'Lectures cannnot edit scores if ticked.'), 109 required = False, 110 default = False, 111 ) 112 105 113 courses = Attribute("A container for courses.") 106 114 certificates = Attribute("A container for certificates.")
Note: See TracChangeset for help on using the changeset viewer.