Changeset 4485
- Timestamp:
- 29 Jul 2009, 15:26:31 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/catalog.py
r4475 r4485 5 5 from hurry.query import Eq 6 6 from waeup.app import University 7 from waeup.interfaces import ICourse 7 from waeup.interfaces import ICourse, ICertificateCourse 8 8 from waeup.student.interfaces import IStudent 9 9 from zope.app.catalog.interfaces import ICatalog … … 44 44 title = index.Text(attribute='title') 45 45 46 class CourseCertificatesIndexes(grok.Indexes): 47 grok.site(University) 48 grok.name('certcourses_catalog') 49 grok.context(ICertificateCourse) 50 51 course_code = index.Field(attribute='getCourseCode') 46 52 47 53 @grok.subscribe(ICourse, grok.IObjectAddedEvent)
Note: See TracChangeset for help on using the changeset viewer.