Changeset 1363 for WAeUP_SRP/trunk/skins/waeup_utilities
- Timestamp:
- 26 Jan 2007, 18:08:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/reindex_entry_mode.py
r1337 r1363 15 15 16 16 sbrains = cat() 17 #from Products.zdb import set_trace;set_trace()18 17 for sb in sbrains: 19 em = context.getFromData_entry_mode(sb.id) 18 normalized = False 19 em= context.getFromData_entry_mode(sb.id) 20 20 if em: 21 normalized = True 22 elif sb.entry_mode in ('DIRECT', 'DIRECT ENTRY',): 23 em = 'DE' 24 normalized = True 25 elif sb.entry_mode in ('U.M.E', 'UNE',): 26 em ="UME" 27 normalized = True 28 if normalized: 21 29 cat.modifyRecord(id = sb.id, 22 30 entry_mode = em)
Note: See TracChangeset for help on using the changeset viewer.