[Zope-Coders] PROBLEM: KeywordIndex and Zope2.6.2
alan runyan
runyaga at runyaga.com
Thu Sep 25 15:58:12 EDT 2003
Hi.
It seems that there is a problem with the KeywordIndex
with Zope2.6.2 (but its been there for awhile I believe?).
In KeyWordIndex._get_object_keywords(obj) we have
newKeywords = getattr(obj, self.id, ())
it seems obj has a acquisition context so it will
fetch the id from the object or acquire it. This
is incorrect I believe.
I had a client who has a KeywordIndex 'Curriculum'
and had a PortalFolder in the root of their CMF
with the id 'Curriculum' and all hell broke loose.
That is What Happened.
Now since we have PluginIndexes I would think that
the cataloging machinery would strip the acquisition
context from the objects before passing it to its
Indexers. Is this the case? If so it didnt work
for my client. This would make sense and I havent
read up on the code whether or not it should work
in that manner.
We put this in the collector and stephan holek found
another bug regarding acl_users (I forgot what it was)
and it should also be in the collector.
cheers,
--
alan runyan
~runyaga@
Clearnoodle Studio
http://www.clearnoodle.com/
More information about the Zope-Coders
mailing list