Re: [Zope-dev] ZCatalogs with SearchIndexes in ZODB - how to fix?
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 the thread that lead to this change: http://cvs.zope.org/Zope3/lib/python/Persistence/cPersistence.c.diff?r1=1.9&r2=1.10 But doesn't that mean that if an object is changed during its __setstate__ but not after, those changes won't get persisted (because just after __setstate__ the object reverts to UPTODATE) ? Florent -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:[EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalogs with SearchIndexes in ZODB - how to fix?
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, it's caused by some ZCatalog >objects in the ZODB that were created back when using SearchIndex was the >hip'n'groovy way to impress the other catalog objects. > >Short of manually deleting and re-creating all the ZCatalog objects in the >ZODB, is there a way to get these puppies updated to get rid of the warnings? > >Thanks, >Anthony > > 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. My inclination would be to write a one time "search and replace" method which crawled the ZODB looking for such objects and replaced them with newer versions. -- Matt Kromer Zope Corporation http://www.zope.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZCatalogs with SearchIndexes in ZODB - how to fix?
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 ZCatalog objects in the ZODB that were created back when using SearchIndex was the hip'n'groovy way to impress the other catalog objects. Short of manually deleting and re-creating all the ZCatalog objects in the ZODB, is there a way to get these puppies updated to get rid of the warnings? Thanks, Anthony -- Anthony Baxter <[EMAIL PROTECTED]> It's never too late to have a happy childhood. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )