[Zope-dev] ZCatalogs with SearchIndexes in ZODB - how to fix?

2002-07-24 Thread Anthony Baxter
I've got a Data.fs which has been gradually moved from Zope version to zope version (it's quite possible that the same Data.fs was originally a Data.bbb!) We've been getting the SearchIndex deprecation warning for some time, and I'd like to fix it - as far as I can tell, it's caused by some

Re: [Zope-dev] How to get Entrys from a catalog by date boundaries

2002-07-24 Thread Lennart Regebro
From: Sebastian Sippl [EMAIL PROTECTED] When I send my request, the only things I get back are some MYBRAnI instance at #123848-tags. Thats what you get back from catalog queries. Each brain is a small object that has all the meta-data you have indexed in the catalog as properties. It's done

Re: [Zope-dev] Date Time Problem

2002-07-24 Thread Lennart Regebro
From: Sebastian Sippl [EMAIL PROTECTED] return context.cata({'content' : id, 'date' : DateTime()-7, 'date_usage' : 'range:min', }) I always get back all catalog items. You should get back all items that have a date that is set to after DateTime()-7

Re: [Zope-dev] Refresh trashes acquisition

2002-07-24 Thread Matthew T. Kromer
Ross Boylan wrote: I find that when I refresh my product it destroys some of the containment relationships. Things start failing, and as far as I can tell the only recovery is to completely rebuild the object. This is a big problem, and if anyone could explain what is going on and how to avoid

Re: [Zope-dev] ZCatalogs with SearchIndexes in ZODB - how to fix?

2002-07-24 Thread Matthew T. Kromer
Anthony Baxter wrote: I've got a Data.fs which has been gradually moved from Zope version to zope version (it's quite possible that the same Data.fs was originally a Data.bbb!) We've been getting the SearchIndex deprecation warning for some time, and I'd like to fix it - as far as I can tell,

Re: [Zope-dev] Refresh trashes acquisition

2002-07-24 Thread Florent Guillaume
Matthew T. Kromer [EMAIL PROTECTED] wrote: Hmm, while what you're referring to is refresh in the sense of a product reload, it's important to first state that *no* acquisition is expected to survive between transactions. But subtransactions are ok, no? get_transaction().commit() is alright?

Re: [Zope-dev] ZCatalogs with SearchIndexes in ZODB - how to fix?

2002-07-24 Thread Florent Guillaume
Matthew T. Kromer [EMAIL PROTECTED] wrote: Well, the *sneaky* way to do it would be a funky one-time mod to the object's __setstate__ method -- but I caution against excessive sneakiness as potentially very frustrating to get right. Which makes me think... I don't find right now were was