Changeset 13214 for main/waeup.kofa/trunk/src
- Timestamp:
- 23 Aug 2015, 10:05:17 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/app.py
r13212 r13214 86 86 getUtility(IKofaPluggable, name='users').update( 87 87 self, 'users', self.logger) 88 getUtility(IKofaPluggable, name='applicants').update( 89 self, 'applicants', self.logger) 88 90 return 89 91 attrs_to_fields(University) -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/root.py
r13212 r13214 23 23 from hurry.query.interfaces import IQuery 24 24 from zope.component import getUtility 25 from zope.component.interfaces import ComponentLookupError 26 from zope.catalog.interfaces import ICatalog 27 from zope.catalog.field import FieldIndex 25 28 from zope.schema import getFields 26 29 from waeup.kofa.interfaces import IKofaPluggable … … 89 92 # logger.info( 90 93 # '%s: description_dict added to root.' % self.log_prefix) 94 try: 95 cat = getUtility(ICatalog, name='applicants_catalog') 96 if 'record_used' not in cat.keys(): 97 nothing_to_do = False 98 cat[u'record_used'] = FieldIndex(field_name=u'record_used') 99 cat.updateIndexes() 100 logger.info( 101 '%s: record_used index added to applicants_catalog.' 102 % self.log_prefix) 103 except ComponentLookupError: # in unit tests 104 pass 91 105 if nothing_to_do: 92 106 logger.info(
Note: See TracChangeset for help on using the changeset viewer.