Ignore:
Timestamp:
29 May 2011, 10:14:09 (14 years ago)
Author:
Henrik Bettermann
Message:

Use UniqueField? index for code as suggested in ticket #31.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/university/catalog.py

    r6210 r6218  
    1313    ICertificate,
    1414    )
     15from waeup.sirp.index import UniqueField
    1516
    1617class CourseIndexes(grok.Indexes):
     
    2122    grok.context(ICourse)
    2223
    23     code = grok.index.Field(attribute='code')
     24    code = UniqueField(attribute='code')
    2425    title = grok.index.Text(attribute='title')
    2526
     
    3132    grok.context(ICertificate)
    3233
    33     code = grok.index.Field(attribute='code')
     34    code = UniqueField(attribute='code')
    3435    application_category = grok.index.Field(attribute='application_category')
    3536
Note: See TracChangeset for help on using the changeset viewer.