Changeset 15757 for main/waeup.kofa/trunk/src
- Timestamp:
- 6 Nov 2019, 07:38:08 (5 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 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 -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r15709 r15757 530 530 prefix = 'form' 531 531 532 omit_fields = ('date_of_birth', 'current_level' , 'flash_notice')532 omit_fields = ('date_of_birth', 'current_level') 533 533 534 534 form_fields = grok.AutoFields(IStudentBase).select('student_id', 'reg_number')
Note: See TracChangeset for help on using the changeset viewer.