Last change
on this file since 6449 was
6446,
checked in by uli, 14 years ago
|
Add accesscode catalog (sorry, really forgotten to check-in).
|
File size:
562 bytes
|
Line | |
---|
1 | """Cataloging and searching components for access codes. |
---|
2 | """ |
---|
3 | import grok |
---|
4 | from waeup.sirp.interfaces import IUniversity |
---|
5 | from waeup.sirp.accesscodes.interfaces import IAccessCode |
---|
6 | |
---|
7 | class AccessCodeIndexes(grok.Indexes): |
---|
8 | """A catalog for access codes. |
---|
9 | """ |
---|
10 | grok.site(IUniversity) |
---|
11 | grok.name('accesscodes_catalog') |
---|
12 | grok.context(IAccessCode) |
---|
13 | |
---|
14 | code = grok.index.Field(attribute='representation') |
---|
15 | history = grok.index.Text(attribute='history') |
---|
16 | disabled = grok.index.Field(attribute='disabled') |
---|
17 | used = grok.index.Field(attribute='used') |
---|
Note: See
TracBrowser for help on using the repository browser.