Changeset 335

Show
Ignore:
Timestamp:
09/27/06 14:54:04 (2 years ago)
Author:
thomase
Message:

Entities and Names now call reindexObject() on themselves as the final step in creation. This ensures that the portal catalog holds the latest version of all indexed fields, like title (which is used in navigation and content views!).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GeographicEntityLite/trunk/GeographicEntityLite/Extensions/batching.py

    r328 r335  
    123123        en_name.setSecondaryReferences(name.secondaryReferences) 
    124124        en_name.setGeoNameType(name.classifications['geoNameType']) 
     125        en_name.reindexObject() 
    125126        # classifications! 
    126127         
    127128    # rename the entity to reflect the names of its children 
    128129    setGeoTitleFromNames(en) 
     130     
     131    # refresh appropriate entries in the portal catalog (e.g., the title) 
     132    en.reindexObject() 
    129133     
    130134class geoName: