Changeset 6145 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 19 May 2011, 13:49:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.py
r6125 r6145 7 7 from waeup.sirp.university.interfaces import ( 8 8 IFaculty, IFacultyAdd, IDepartment) 9 from waeup.sirp.university.vocabularies import inst_types 10 11 local_roles = [ 12 {'name':'waeup.local.DepartmentOfficer','title':'Department Officer'}, 13 ] 9 from waeup.sirp.university.vocabularies import inst_types 14 10 15 11 class Faculty(grok.Container): … … 17 13 """ 18 14 grok.implements(IFaculty, IFacultyAdd) 15 16 @property # Make this method read_only and looking like an attr. 17 def local_roles(cls): 18 return [ 19 {'name':'waeup.local.DepartmentOfficer', 20 'title':'Department Officer'}, 21 ] 19 22 20 23 def __init__(self, … … 50 53 result = "%s (%s)" % (self.title, self.code) 51 54 return result 52 55 53 56 class FacultyFactory(grok.GlobalUtility): 54 57 """A factory for faculty containers.
Note: See TracChangeset for help on using the changeset viewer.