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

Florent Guillaume fg at nuxeo.com
Fri Oct 24 09:44:10 EDT 2003


PortalFolder is designed to be a simple neutral container, never
cataloged. If you need cataloging, inherit CMFCatalogAware first (see
SkinnedFolder for an example).

Florent

In article <7CDD7B94357FD5119E800002A537C46E230A6C at s5-ccr-r1.ccrs.nrcan.gc.ca> you write:
> 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,


-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg at nuxeo.com



More information about the Zope-CMF mailing list