On 11/8/10 16:04 , Tres Seaver wrote:
> Hash: SHA1
> On 11/08/2010 09:07 AM, Wichert Akkerman wrote:
>> I have some code (from Chris) which rebuilds a repoze.catalog instance.
>> It uses a very simple algorithm:
>>     catalog.clear()
>>     for each obj in root:
>>        index object
>>        if object is folderish:
>>            process al its children
>> unfortunately there is one problem with this code: any stale items in
>> catalog.document_map are not cleared, so there is still cruft remaining
>> after rebuilding the catalog. Can that be considered to be a bug?
> Seems like a bug to me.

A bug in my app though: looks like Chris implemented a CachingCatalog 
class which adds catalog.document_map. Without an API to clear a 
DocumentMap instance I can't clear it though.

Repoze-dev mailing list

Reply via email to