Re: [Zope-dev] Keyword Indexes causing Keyerrors

2000-12-21 Thread Itamar Shtull-Trauring
Here's what was causing my KeyErrors, and how I solved it, and why I think KeywordIndexes broke. I have a keyword index on the "categories" property of my CatalogAware object. "categories" is a list. def manage_removeItems(self, ids=[]): """ Remove listed items from this category """

Re: [Zope-dev] Keyword Indexes causing Keyerrors

2000-12-20 Thread Christopher Petrilli
On 12/20/00 11:52 AM, "Itamar Shtull-Trauring" <[EMAIL PROTECTED]> wrote: > KeyErrors - the logging says: > 2000-12-20T16:33:00 ERROR(200) UnKeywordIndex unindex_object could not > remove 3 from set This is not the "KeyError" in the sense that it's not propogated up to the top level, but it is a

Re: [Zope-dev] Keyword Indexes causing Keyerrors

2000-12-20 Thread Itamar Shtull-Trauring
Christopher Petrilli wrote: > Are you getting KeyErrors or are you getting log messages complaining about > keyts not existing? KeyErrors - the logging says: 2000-12-20T16:33:00 ERROR(200) UnKeywordIndex unindex_object could not remove 3 from set -- Email: itamar(at)shtull-trauring.org Web:

Re: [Zope-dev] Keyword Indexes causing Keyerrors

2000-12-20 Thread Christopher Petrilli
On 12/20/00 11:33 AM, "Itamar Shtull-Trauring" <[EMAIL PROTECTED]> wrote: > I'm getting tons and tons of keyerrors when making changes to a catalogaware > object's keyword index and then reindex_object() it. Alternatively, the > Catalog doesn't get updated at all. Is there any way to prevent thi

[Zope-dev] Keyword Indexes causing Keyerrors

2000-12-20 Thread Itamar Shtull-Trauring
I'm getting tons and tons of keyerrors when making changes to a catalogaware object's keyword index and then reindex_object() it. Alternatively, the Catalog doesn't get updated at all. Is there any way to prevent this from happening, other than upgrading to 2.3? -- Email: itamar(at)shtull-traur

Re: [Zope-dev] keyword indexes

2000-12-15 Thread Dieter Maurer
Josh Zeidner writes: > This should work. Alternatively: "MediaKeywords = 'ouch'". > This calls the catalog without any keyword arguments and with a single positional parameter 0. The catalog interprets this as "no search criteria" and returns all objects. Dieter _

RE: [Zope-dev] keyword indexes

2000-12-15 Thread Josh Zeidner
Hi Steve, Yes Im sure it is being indexed as I have set the MetaData as you described. It seems to be indexed as expected. Basically, what I am trying to do is set up keyword relationships so that I can present related links to the user( someone implied that this is the reason keywords were

Re: [Zope-dev] keyword indexes

2000-12-15 Thread Steve Alexander
Josh Zeidner wrote: > Hi, > > Currently I am wrestling with "keyword" indexes in ZCatalogs. How do I > query the ZCatalog for all records of objects indexed on a particular > keyword. For instance if my index is named MediaKeyword ive tried: > > That should work. >this has completel

[Zope-dev] keyword indexes

2000-12-14 Thread Josh Zeidner
Hi, Currently I am wrestling with "keyword" indexes in ZCatalogs. How do I query the ZCatalog for all records of objects indexed on a particular keyword. For instance if my index is named MediaKeyword ive tried: this has completely unpredictable results. this returns all indexed