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: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 this

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

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: dtml-in "Catalog.searchResults( MediaKeywords =

Re: [Zope-dev] keyword indexes

2000-12-15 Thread Dieter Maurer
Josh Zeidner writes: dtml-in "Catalog.searchResults( MediaKeywords = ['ouch'] )" This should work. Alternatively: "MediaKeywords = 'ouch'". dtml-in "Catalog.searchResults( MediaKeywords in ['ouch'] )" This calls the catalog without any keyword arguments and with a single positional

[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: dtml-in "Catalog.searchResults( MediaKeywords = ['ouch'] )" this has