Changeset 10247 for main/waeup.kofa/trunk/src/waeup/kofa/university
- Timestamp:
- 29 May 2013, 06:29:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/facultiescontainer.py
r8367 r10247 17 17 ## 18 18 import grok 19 import zope.location.location 19 20 from zope.component.interfaces import IFactory 20 21 from zope.interface import implementedBy 21 22 from waeup.kofa.interfaces import IKofaPluggable 22 23 from waeup.kofa.university.interfaces import IFacultiesContainer, IFaculty 24 from waeup.kofa.utils.batching import VirtualExportJobContainer 25 26 class VirtualFacultiesExportJobContainer(VirtualExportJobContainer): 27 """A virtual export job container for certificates. 28 """ 23 29 24 30 class FacultiesContainer(grok.Container): … … 26 32 """ 27 33 grok.implements(IFacultiesContainer) 34 35 def traverse(self, name): 36 if name == 'exports': 37 # create a virtual exports container and return it 38 container = VirtualFacultiesExportJobContainer() 39 zope.location.location.located(container, self, 'exports') 40 return container 41 return None 28 42 29 43 def addFaculty(self, faculty):
Note: See TracChangeset for help on using the changeset viewer.