[Zope-dev] ZODB object upgrades

2003-11-02 Thread alan milligan
Hi, Over the last month or so, I've rather wonderfully managed to corrupt my ZODB with artifacts of my Currency class that no longer exist. This is due to: (i) moving the module to a different package (twice) (ii) renaming the module (iii) changing it's inheritance hierarchy (having removed all

Re: [Zope-dev] ZODB object upgrades

2003-11-03 Thread J. Cameron Cooper
I now desperately need to write a parser to convert all of these nasties to ZCurrency types. I've come up with the following ExternalMethod - whereby I've defined a __currency__ attribute in each obselete incantation's product (Currency object's are used in the spirit of DateTime rather than

Re: [Zope-dev] ZODB object upgrades

2003-11-04 Thread alan milligan
Thanks for the reply, you've raised a couple of points I need clarification upon... Attributes added to product code are not automatically present in the objects defined by that code, only those created by that code. Methods, however, will be present on all instances of a given class. I won't b

Re: [Zope-dev] ZODB object upgrades

2003-11-05 Thread Dieter Maurer
alan milligan wrote at 2003-11-2 14:13 +: > ... > I now desperately need to write a parser to convert all of these nasties to > ZCurrency types. I've come up with the following ExternalMethod - whereby > I've defined a __currency__ attribute in each obselete incantation's product > ..