Ignore:
Timestamp:
22 May 2013, 07:39:32 (11 years ago)
Author:
Henrik Bettermann
Message:

We need the context (applicant) for filtering certificates.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r10186 r10187  
    9797            application_category=(appcat,appcat))
    9898        result = getUtility(
    99             IApplicantsUtils).filterCertificates(result)
     99            IApplicantsUtils).filterCertificates(context, result)
    100100        curr_course = context.course1
    101101        if curr_course is not None and curr_course not in result:
     
    163163        """
    164164
    165     def filterCertificates(resultset):
     165    def filterCertificates(context, resultset):
    166166        """Filter and sort certificates for AppCatCertificateSource.
    167167        """
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py

    r10186 r10187  
    7878        return state_stats, None
    7979
    80     def filterCertificates(self, resultset):
     80    def filterCertificates(self, context, resultset):
    8181        """Filter and sort certificates in AppCatCertificateSource.
    8282        """
Note: See TracChangeset for help on using the changeset viewer.