Ignore:
Timestamp:
29 May 2013, 06:29:51 (12 years ago)
Author:
Henrik Bettermann
Message:

Enable bursary data export at facultiescontainer level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/university/facultiescontainer.py

    r8367 r10247  
    1717##
    1818import grok
     19import zope.location.location
    1920from zope.component.interfaces import IFactory
    2021from zope.interface import implementedBy
    2122from waeup.kofa.interfaces import IKofaPluggable
    2223from waeup.kofa.university.interfaces import IFacultiesContainer, IFaculty
     24from waeup.kofa.utils.batching import VirtualExportJobContainer
     25
     26class VirtualFacultiesExportJobContainer(VirtualExportJobContainer):
     27    """A virtual export job container for certificates.
     28    """
    2329
    2430class FacultiesContainer(grok.Container):
     
    2632    """
    2733    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
    2842
    2943    def addFaculty(self, faculty):
Note: See TracChangeset for help on using the changeset viewer.