- Timestamp:
- 26 Sep 2013, 09:37:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/container.py
r9531 r10655 23 23 import pytz 24 24 from datetime import datetime 25 import zope.location.location 25 26 from zope.component import getUtility 26 27 from zope.component.factory import Factory … … 31 32 IApplicantsUtils) 32 33 from waeup.kofa.utils.helpers import attrs_to_fields 33 34 from waeup.kofa.utils.batching import VirtualExportJobContainer 34 35 35 36 def generate_applicant_id(container=None): … … 42 43 # In some tests we don't use containers 43 44 return u"xxx_1234" 45 46 class VirtualApplicantsExportJobContainer(VirtualExportJobContainer): 47 """A virtual export job container for certificates. 48 """ 44 49 45 50 class ApplicantsContainer(grok.Container): … … 119 124 return 120 125 126 def traverse(self, name): 127 """Deliver appropriate containers. 128 """ 129 if name == 'exports': 130 # create a virtual exports container and return it 131 container = VirtualApplicantsExportJobContainer() 132 zope.location.location.located(container, self, 'exports') 133 return container 134 return None 135 121 136 ApplicantsContainer = attrs_to_fields(ApplicantsContainer) 122 137
Note: See TracChangeset for help on using the changeset viewer.