Changeset 1337 for WAeUP_SRP/trunk


Ignore:
Timestamp:
21 Jan 2007, 12:42:57 (18 years ago)
Author:
joachim
Message:

update only if entry_mode is not empty

File:
1 edited

Legend:

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

    r1335 r1337  
    1717#from Products.zdb import set_trace;set_trace()
    1818for sb in sbrains:
    19     cat.modifyRecord(id = sb.id,
    20                      entry_mode = context.getFromData_entry_mode(sb.id))
     19    em = context.getFromData_entry_mode(sb.id)
     20    if em:
     21        cat.modifyRecord(id = sb.id,
     22                         entry_mode = em)
    2123
    22 
Note: See TracChangeset for help on using the changeset viewer.