Changeset 6778 for main/waeup.sirp/trunk
- Timestamp:
- 15 Sep 2011, 11:07:23 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/catalog.py
r6750 r6778 6 6 from hurry.query.query import Query 7 7 from zope.index.text.parsetree import ParseError 8 from waeup.sirp.index import UniqueField9 8 from waeup.sirp.interfaces import IUniversity, IQueryResultItem 10 9 from waeup.sirp.students.interfaces import IStudent … … 19 18 student_id = index.Field(attribute='student_id') 20 19 name = index.Text(attribute='name') 21 reg_number = UniqueField(attribute='reg_number')22 matric_number = UniqueField(attribute='matric_number')20 reg_number = index.Field(attribute='reg_number') 21 matric_number = index.Field(attribute='matric_number') 23 22 state = index.Field(attribute='state') 24 23 -
main/waeup.sirp/trunk/src/waeup/sirp/university/catalog.py
r6447 r6778 10 10 from zope.intid import IIntIds 11 11 #from waeup.sirp.catalog import QueryResultItem 12 from waeup.sirp.index import UniqueField13 12 from waeup.sirp.interfaces import IUniversity, IQueryResultItem 14 13 from waeup.sirp.university.interfaces import ( … … 24 23 grok.context(ICourse) 25 24 26 code = UniqueField(attribute='code')25 code = grok.index.Field(attribute='code') 27 26 title = grok.index.Text(attribute='title') 28 27 … … 34 33 grok.context(ICertificate) 35 34 36 code = UniqueField(attribute='code')35 code = grok.index.Field(attribute='code') 37 36 application_category = grok.index.Field(attribute='application_category') 38 37
Note: See TracChangeset for help on using the changeset viewer.