Changeset 9843 for main/waeup.kofa/trunk/src/waeup/kofa/university
- Timestamp:
- 8 Jan 2013, 11:38:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/course.py
r9828 r9843 19 19 """ 20 20 import grok 21 import zope.location.location 21 22 from zope.catalog.interfaces import ICatalog 22 23 from zope.interface import implementedBy … … 27 28 from waeup.kofa.interfaces import IKofaPluggable 28 29 from waeup.kofa.university.interfaces import ICourse, ICourseAdd 30 from waeup.kofa.utils.batching import VirtualExportJobContainer 31 32 class VirtualCourseExportJobContainer(VirtualExportJobContainer): 33 """A virtual export job container for courses. 34 """ 29 35 30 36 class Course(grok.Model): … … 50 56 self.semester = semester 51 57 self.former_course = former_course 58 59 def traverse(self, name): 60 """Deliver appropriate containers. 61 """ 62 if name == 'exports': 63 # create a virtual exports container and return it 64 container = VirtualCourseExportJobContainer() 65 zope.location.location.located(container, self, 'exports') 66 return container 67 return None 52 68 53 69 def longtitle(self):
Note: See TracChangeset for help on using the changeset viewer.