Changeset 15748 for main/waeup.kofa/trunk/src/waeup/kofa/hostels
- Timestamp:
- 4 Nov 2019, 10:15:44 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/hostels/hostel.py
r15741 r15748 345 345 if 'bed_id' not in cat.keys(): 346 346 nothing_to_do = False 347 # replace original `updateIndex` method 348 def updateIndexReplacement(index): 349 reindex_cat(cat) 350 cat._updateIndex = cat.updateIndex 351 cat.updateIndex = updateIndexReplacement 352 # setup catalog 347 353 cat[u'bed_id'] = FieldIndex(field_name=u'bed_id') 354 cat.updateIndex = cat._updateIndex # undo changes 348 355 logger.info( 349 356 '%s: bed_id index added to beds_catalog.'
Note: See TracChangeset for help on using the changeset viewer.