Ignore:
Timestamp:
28 Nov 2012, 01:14:33 (14 years ago)
Author:
uli
Message:

Try to make clearer where we head to regarding filtered exports.

File:
1 edited

Legend:

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

    r9234 r9734  
    1919"""
    2020import grok
     21import zope.location.location
    2122from zope.component.interfaces import IFactory
    2223from zope.interface import implementedBy
    … …  
    2425from waeup.kofa.university.coursescontainer import CoursesContainer
    2526from waeup.kofa.university.certificatescontainer import CertificatesContainer
     27from waeup.kofa.utils.batching import VirtualExportJobContainer
    2628from waeup.kofa.interfaces import IKofaUtils
    2729from waeup.kofa.university.interfaces import IDepartment, IDepartmentAdd
    … …  
    6870        elif name == 'certificates':
    6971            return self.certificates
     72        elif name == 'exports':
     73            # create a virtual exports container and return it
     74            container = VirtualExportJobContainer()
     75            zope.location.location.located(container, self, 'exports')
     76            return container
    7077        return None
    7178
    … …  
    7582            insttypes_dict[self.title_prefix],
    7683            self.title, self.code)
    77 
    7884
    7985class DepartmentFactory(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.