[Zope-CMF] reindexObject() does not work ??

Jean-Francois.Doyon at CCRS.NRCan.gc.ca Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Thu Oct 23 15:47:47 EDT 2003


Hello,

I'm using Zope 2.6.2 with (admitedly) Python 2.2.3 ... Oh and CMF 1.4.1 ...

I have a Zope CMF Type defined as:

class InteractiveMap(PortalFolder, PortalContent, DefaultDublinCoreImpl):
    """ Interactive Map Class """ 
 
    portal_type = meta_type = 'Interactive Map'

and it's editing method is:

    def edit(self, mapid, defaultlayer, abstract, supptopics = []):
        self.mapid = mapid 
        self.defaultlayer = defaultlayer
        self.abstract = abstract 
        self.supptopics = supptopics 
        self.reindexObject() 

I have "supptopics" listed in the Catalog Metadata page.

Now when I edit an object of this type, the reindexing doesn't seem to
occur. The catalog result metadata stays unchanged.  The only way I've found
to make it work right is to go in through the ZMI and re-catalog, or find
the object in the catalog and update it.

I tried with both having and not having a "supptopics" index (I don't need
to search on it, just want it in the results).

The "supptopics" attribute does not appear in all instances of this class
since it's recently added to the class definition.

I'm going to check other types to see if this is universal ...

Anybody have any idea what's going on ???

Thanks,

Jean-François Doyon
Internet Service Development and Systems Support
GeoAccess Division
Canadian Center for Remote Sensing
Natural Resources Canada
http://atlas.gc.ca
Phone: (613) 992-4902
Fax: (613) 947-2410




More information about the Zope-CMF mailing list