Changeset 11894


Ignore:
Timestamp:
28 Oct 2014, 20:55:36 (10 years ago)
Author:
Henrik Bettermann
Message:

Limit selectable batch processors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.pcn/trunk/src/kofacustom/pcn/browser/pages.py

    r11845 r11894  
    2121    LoginPage, CertificatePage, CertificateManageFormPage, DepartmentPage,
    2222    DepartmentManageFormPage, CertificateAddFormPage, DepartmentAddFormPage,
    23     FacultyManageFormPage, FacultyAddFormPage, LoginPage)
     23    FacultyManageFormPage, FacultyAddFormPage, LoginPage,
     24    DatacenterImportStep2,
     25    DatacenterUploadPage)
    2426from waeup.kofa.university.interfaces import ICertificate
    2527from kofacustom.pcn.interfaces import (
     
    9597    """A login page, available for all objects.
    9698    """
     99
     100class DatacenterUploadPage(DatacenterUploadPage):
     101
     102    def getImporters(self):
     103        importer_props = super(DatacenterUploadPage, self).getImporters()
     104        filtered = [ip for ip in importer_props if ip['name'] in
     105            ('facultyprocessor', 'departmentprocessor',)]
     106        return filtered
     107
     108class DatacenterImportStep2(DatacenterImportStep2):
     109
     110    def getImporters(self):
     111        importers = super(DatacenterImportStep2, self).getImporters()
     112        filtered = [i for i in importers if i['name'] in
     113            ('facultyprocessor', 'departmentprocessor',)]
     114        return filtered
Note: See TracChangeset for help on using the changeset viewer.