Changeset 15757 for main/waeup.kofa/trunk/src/waeup/kofa/hostels
- Timestamp:
- 6 Nov 2019, 07:38:08 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/hostels/hostel.py
r15748 r15757 345 345 if 'bed_id' not in cat.keys(): 346 346 nothing_to_do = False 347 # replace original `updateIndex` method348 def updateIndexReplacement(index):349 reindex_cat(cat)350 cat._updateIndex = cat.updateIndex351 cat.updateIndex = updateIndexReplacement352 # setup catalog353 cat[u'bed_id'] = FieldIndex(field_name=u'bed_id')354 cat.updateIndex = cat._updateIndex # undo changes355 347 logger.info( 356 '%s: bed_id index added to beds_catalog.' 357 % self.log_prefix) 358 reindex_cat(cat) 359 logger.info( 360 '%s: beds_catalog updated.' 348 '%s: bed_id index is missing in beds_catalog. ' 349 'Use waeup.kofa.scripts.add_field_index in debugger ' 350 'to add the field index and reindex the catalog.' 361 351 % self.log_prefix) 362 352 except ComponentLookupError: # in unit tests
Note: See TracChangeset for help on using the changeset viewer.