Changeset 9842 for main/waeup.kofa/trunk/src/waeup/kofa/university
- Timestamp:
- 8 Jan 2013, 07:52:55 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.py
r9826 r9842 19 19 """ 20 20 import grok 21 import zope.location.location 21 22 from zope.event import notify 22 23 from zope.catalog.interfaces import ICatalog … … 30 31 ICertificate, ICertificateAdd, ICertificateCourse) 31 32 from waeup.kofa.university.vocabularies import course_levels 33 from waeup.kofa.utils.batching import VirtualExportJobContainer 34 35 class VirtualCertificateExportJobContainer(VirtualExportJobContainer): 36 """A virtual export job container for certificates. 37 """ 32 38 33 39 class Certificate(grok.Container): … … 61 67 self.school_fee_3 = school_fee_3 62 68 self.school_fee_4 = school_fee_4 69 70 def traverse(self, name): 71 """Deliver appropriate containers. 72 """ 73 if name == 'exports': 74 # create a virtual exports container and return it 75 container = VirtualCertificateExportJobContainer() 76 zope.location.location.located(container, self, 'exports') 77 return container 78 return None 63 79 64 80 def longtitle(self):
Note: See TracChangeset for help on using the changeset viewer.