Ignore:
Timestamp:
7 Dec 2012, 10:55:35 (12 years ago)
Author:
uli
Message:

Add new students filter based on catalog queries from w.k.catalog.

File:
1 edited

Legend:

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

    r9736 r9786  
    2424from zope.catalog.interfaces import ICatalog
    2525from zope.component import queryUtility
     26from waeup.kofa.catalog import FilteredCatalogQueryBase
    2627from waeup.kofa.interfaces import (
    2728    IUniversity, IQueryResultItem, academic_sessions_vocab)
     
    125126    session = index.Field(attribute='getLevelSession')
    126127    code = index.Field(attribute='code')
     128
     129class StudentsQuery(FilteredCatalogQueryBase):
     130    """Query students in a site. See waeup.kofa.catalog for more info.
     131    """
     132    cat_name = 'students_catalog'
     133    defaults = dict(student_id=None) # make sure we get all studs by default
Note: See TracChangeset for help on using the changeset viewer.