Cataloging zclass problem
Hi zopistas, I have (had) a slight problem here concerning getting zclasses in a catalog with zope 2.3.1 to 2.3.3. I have a folderish (catalog-aware) zclass whose content is in a dtml-method (named content). I have added a python script which renders my content for indexing via: return(render(context.content(context))) I got the follwing error (pulled out of medusa_monitor for better verbosity) on some (a third) of all zclasses. The traceback I get in the ZMI is the same. k.manage_catalogReindex(None,None,'/') Traceback (innermost last): File "/home/bleutgen/bin/Zope-2.3.1-src/ZServer/medusa/monitor.py", line 94, in found_terminator result = eval (co, self.local_env) File "<secure_monitor_channel connected 127.0.0.1:2905 at 890f7e8>", line 0, in ? File "/home/bleutgen/bin/Zope-2.3.1-src/lib/python/Products/ZCatalog/ZCatalog.py", line 325, in manage_catalogReindex self.catalog_object(obj, p) File "/home/bleutgen/bin/Zope-2.3.1-src/lib/python/Products/ZCatalog/ZCatalog.py", line 429, in catalog_object self._catalog.catalogObject(obj, uid, None) File "/home/bleutgen/bin/Zope-2.3.1-src/lib/python/Products/ZCatalog/Catalog.py", line 448, in catalogObject blah = x.index_object(index, object, threshold) File "/home/bleutgen/bin/Zope-2.3.1-src/lib/python/SearchIndex/UnTextIndex.py", line 351, in index_object widScores[getWid(word)]=score File "/home/bleutgen/bin/Zope-2.3.1-src/lib/python/SearchIndex/GlobbingLexicon.py", line 163, in getWordId if self._lexicon.has_key(word): File "/home/bleutgen/bin/Zope-2.3.1-src/lib/python/ZODB/Connection.py", line 508, in setstate p, serial = self._storage.load(oid, self._version) File "/home/bleutgen/bin/Zope-2.3.1-src/lib/python/ZODB/FileStorage.py", line 593, in load try: return self._load(oid, version, self._index, self._file) File "/home/bleutgen/bin/Zope-2.3.1-src/lib/python/ZODB/FileStorage.py", line 569, in _load pos=_index[oid] KeyError: f Now I fiddled around a bit and removed and re-added some indexes/metadata, and now it seems to work (on our dev-server). The funny thing is that just certain character-combination seem to trigger this error. For instance I could trim the index content down to the two characters (fi) and got the above error. Anybody any idea? cheers, oliver
Oliver Bleutgen wrote:
Hi zopistas,
I have (had) a slight problem here concerning getting zclasses in a catalog with zope 2.3.1 to 2.3.3. I have a folderish (catalog-aware) zclass whose content is in a dtml-method (named content). I have added a python script which renders my content for indexing via:
return(render(context.content(context)))
[snip]
Anybody any idea?
cheers, oliver
Try using Zope 2.3.3, there are bugs in ZClasses in 2.3.1 hth, -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
participants (2)
-
Casey Duncan -
Oliver Bleutgen