Changeset 4485


Ignore:
Timestamp:
29 Jul 2009, 15:26:31 (15 years ago)
Author:
uli
Message:

Add a catalog for course certificates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/catalog.py

    r4475 r4485  
    55from hurry.query import Eq
    66from waeup.app import University
    7 from waeup.interfaces import ICourse
     7from waeup.interfaces import ICourse, ICertificateCourse
    88from waeup.student.interfaces import IStudent
    99from zope.app.catalog.interfaces import ICatalog
     
    4444     title = index.Text(attribute='title')
    4545
     46class CourseCertificatesIndexes(grok.Indexes):
     47     grok.site(University)
     48     grok.name('certcourses_catalog')
     49     grok.context(ICertificateCourse)
     50
     51     course_code = index.Field(attribute='getCourseCode')
    4652
    4753@grok.subscribe(ICourse, grok.IObjectAddedEvent)
Note: See TracChangeset for help on using the changeset viewer.