Changeset 9805
- Timestamp:
- 17 Dec 2012, 08:05:40 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/catalog.py
r9631 r9805 19 19 """ 20 20 import grok 21 from grok import index 21 22 from hurry.query import Eq, Text 22 23 from hurry.query.query import Query … … 40 41 grok.context(ICourse) 41 42 42 code = grok.index.Field(attribute='code')43 title = grok.index.Text(attribute='title')43 code = index.Field(attribute='code') 44 title = index.Text(attribute='title') 44 45 45 46 class CertificatesIndexes(grok.Indexes): … … 50 51 grok.context(ICertificate) 51 52 52 code = grok.index.Field(attribute='code')53 application_category = grok.index.Field(attribute='application_category')54 title = grok.index.Text(attribute='title')53 code = index.Field(attribute='code') 54 application_category = index.Field(attribute='application_category') 55 title = index.Text(attribute='title') 55 56 56 57 class CertificateCoursesIndexes(grok.Indexes): … … 62 63 grok.context(ICertificateCourse) 63 64 64 course_code = grok.index.Field(attribute='getCourseCode')65 level = grok.index.Field(attribute='level')65 course_code = index.Field(attribute='getCourseCode') 66 level = index.Field(attribute='level') 66 67 67 68 @grok.subscribe(ICourse, grok.IObjectAddedEvent)
Note: See TracChangeset for help on using the changeset viewer.