Changeset 6549 for main/waeup.sirp/trunk
- Timestamp:
- 23 Jul 2011, 14:30:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/catalog.py
r6470 r6549 2 2 """ 3 3 import grok 4 from grok import index 4 5 from hurry.query import Eq, Text 5 6 from hurry.query.query import Query … … 15 16 grok.context(IAccessCode) 16 17 17 code = grok.index.Field(attribute='representation')18 history = grok.index.Text(attribute='history')19 batch_serial = grok.index.Field(attribute='batch_serial')20 state = grok.index.Field(attribute='state')18 code = index.Field(attribute='representation') 19 history = index.Text(attribute='history') 20 batch_serial = index.Field(attribute='batch_serial') 21 state = index.Field(attribute='state') 21 22 22 23 class AccessCodeQueryResultItem(object): 23 24 grok.implements(IQueryResultItem) 24 25 26 title = u'Access Code Query Item' 27 description = u'Some access code found in a search' 28 25 29 def __init__(self, context, view): 26 30 self.context = context 27 #self.url = view.url(context)31 self.url = view.url(context) 28 32 self.code = context.representation 29 33 self.history = context.history
Note: See TracChangeset for help on using the changeset viewer.