Changeset 1363


Ignore:
Timestamp:
26 Jan 2007, 18:08:46 (18 years ago)
Author:
joachim
Message:

better reindex fixes wrong spellings can be run tonight

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_utilities/reindex_entry_mode.py

    r1337 r1363  
    1515
    1616sbrains = cat()
    17 #from Products.zdb import set_trace;set_trace()
    1817for sb in sbrains:
    19     em = context.getFromData_entry_mode(sb.id)
     18    normalized = False
     19    em= context.getFromData_entry_mode(sb.id)
    2020    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:
    2129        cat.modifyRecord(id = sb.id,
    2230                         entry_mode = em)
Note: See TracChangeset for help on using the changeset viewer.