[Repoze-dev] repoze.catalog clear

2010-11-08 Thread Wichert Akkerman
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

Re: [Repoze-dev] repoze.catalog clear

2010-11-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/08/2010 10:04 AM, Tres Seaver wrote: 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:

Re: [Repoze-dev] repoze.catalog clear

2010-11-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/08/2010 10:10 AM, Wichert Akkerman wrote: On 11/8/10 16:09 , Chris Rossi wrote: The document_map, while sometimes stored on the catalog, is not known to the catalog. If you want to clear it, you need to do so explicitly. This is because

Re: [Repoze-dev] repoze.catalog clear

2010-11-08 Thread Chris Rossi
On Mon, Nov 8, 2010 at 10:10 AM, Wichert Akkerman wich...@wiggy.net wrote: On 11/8/10 16:09 , Chris Rossi wrote: The document_map, while sometimes stored on the catalog, is not known to the catalog. If you want to clear it, you need to do so explicitly. This is because r.catalog makes no