Ignore:
Timestamp:
15 Sep 2011, 11:07:23 (13 years ago)
Author:
Henrik Bettermann
Message:

Remove index package. We don't need UniqueFields? since they do not really help us.

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  
    66from hurry.query.query import Query
    77from zope.index.text.parsetree import ParseError
    8 from waeup.sirp.index import UniqueField
    98from waeup.sirp.interfaces import IUniversity, IQueryResultItem
    109from waeup.sirp.students.interfaces import IStudent
     
    1918    student_id = index.Field(attribute='student_id')
    2019    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')
    2322    state = index.Field(attribute='state')
    2423
  • main/waeup.sirp/trunk/src/waeup/sirp/university/catalog.py

    r6447 r6778  
    1010from zope.intid import IIntIds
    1111#from waeup.sirp.catalog import QueryResultItem
    12 from waeup.sirp.index import UniqueField
    1312from waeup.sirp.interfaces import IUniversity, IQueryResultItem
    1413from waeup.sirp.university.interfaces import (
     
    2423    grok.context(ICourse)
    2524
    26     code = UniqueField(attribute='code')
     25    code = grok.index.Field(attribute='code')
    2726    title = grok.index.Text(attribute='title')
    2827
     
    3433    grok.context(ICertificate)
    3534
    36     code = UniqueField(attribute='code')
     35    code = grok.index.Field(attribute='code')
    3736    application_category = grok.index.Field(attribute='application_category')
    3837
Note: See TracChangeset for help on using the changeset viewer.