Changeset 12632 for main/waeup.kofa/trunk/src/waeup/kofa/university
- Timestamp:
- 26 Feb 2015, 07:35:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/faculty.py
r10684 r12632 20 20 21 21 import grok 22 import zope.location.location 22 23 from zope.component.interfaces import IFactory 23 24 from zope.interface import implementedBy 24 25 from zope.component import getUtility 25 26 from waeup.kofa.interfaces import IKofaUtils 27 from waeup.kofa.utils.batching import VirtualExportJobContainer 26 28 from waeup.kofa.university.interfaces import ( 27 29 IFaculty, IDepartment) … … 34 36 insttypes_dict[inst.title_prefix], 35 37 inst.title, inst.code) 38 39 class VirtualFacultyExportJobContainer(VirtualExportJobContainer): 40 """A virtual export job container for facultiess. 41 """ 36 42 37 43 class Faculty(grok.Container): … … 67 73 self.code = code 68 74 75 def traverse(self, name): 76 """Deliver appropriate containers. 77 """ 78 if name == 'exports': 79 # create a virtual exports container and return it 80 container = VirtualFacultyExportJobContainer() 81 zope.location.location.located(container, self, 'exports') 82 return container 83 return None 84 69 85 def addDepartment(self, department): 70 86 """Add a department to the faculty.
Note: See TracChangeset for help on using the changeset viewer.