Changeset 9933 for main/waeup.kofa


Ignore:
Timestamp:
4 Feb 2013, 13:32:49 (12 years ago)
Author:
Henrik Bettermann
Message:

Export all students including those without certificate.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r9925 r9933  
    28222822        if mode == 'all':
    28232823            mode = None
    2824         job_id = self.context.start_export_job(exporter,
    2825                                       self.request.principal.id,
    2826                                       current_session=session,
    2827                                       current_level=level,
    2828                                       current_mode=mode,
    2829                                       depcode=self.depcode,
    2830                                       certcode=self.certcode)
     2824        if (mode, level, session,
     2825            self.depcode, self.certcode) == (None, None, None, None, None):
     2826            # Export all students including those without certificate
     2827            job_id = self.context.start_export_job(exporter,
     2828                                          self.request.principal.id)
     2829        else:
     2830            job_id = self.context.start_export_job(exporter,
     2831                                          self.request.principal.id,
     2832                                          current_session=session,
     2833                                          current_level=level,
     2834                                          current_mode=mode,
     2835                                          depcode=self.depcode,
     2836                                          certcode=self.certcode)
    28312837        ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
    28322838        self.context.logger.info(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r9925 r9933  
    109109
    110110        students_catalog is the default catalog. The keys must be valid
    111         atalog index names.
     111        catalog index names.
    112112        Returns a simple empty list, a list with `Student`
    113113        objects or a catalog result set with `Student`
Note: See TracChangeset for help on using the changeset viewer.