Re: [Repoze-dev] repoze.catalog clear

2010-11-08 Thread Chris Rossi
On Mon, Nov 8, 2010 at 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 r.catalog makes no assumption

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 b

Re: [Repoze-dev] repoze.catalog clear

2010-11-08 Thread Wichert Akkerman
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 assumptions about how you retrieve > a document given a docid. The Docume

Re: [Repoze-dev] repoze.catalog clear

2010-11-08 Thread Chris Rossi
On Mon, Nov 8, 2010 at 9: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 childre

Re: [Repoze-dev] repoze.catalog clear

2010-11-08 Thread Wichert Akkerman
On 11/8/10 16:04 , Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > 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

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

Re: [Repoze-dev] repoze.catalog clear

2010-11-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- 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 f

Re: [Repoze-dev] bfg_view throwing an error during scan

2010-11-08 Thread Thomas G. Willis
Sorry, as with all things, as soon as I reach out for help he answer becomes clear. I had the arguments reversed in the view. request,context needs to be context,request sorry for the noise Thomas G. Willis On Mon, Nov 8, 2010 at 9:44 AM, Thomas G. Willis wrote: > And I'm not sure what I'm

[Repoze-dev] bfg_view throwing an error during scan

2010-11-08 Thread Thomas G. Willis
And I'm not sure what I'm doing wrong if anything. http://pastebin.com/g6DkvdR6 File "/Users/twillis/projects/testblob/app.py", line 78, in app config.scan(package="views") File "/Users/twillis/projects/cr-buttrcup/ext/repoze.bfg/repoze/bfg/configuration.py", line 1455, in scan File "

[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 ite