[ZPatterns] ZPatterns 0.4.3 final for Zope 2.3.x released

Itai Tavor itai@optusnet.com.au
Thu, 19 Jul 2001 18:46:27 +1000


Phillip J. Eby wrote:

>At 10:27 AM 6/26/01 +1000, Itai Tavor wrote:
>>
>>Now for the problem: You mentioned some time ago that clicking
>>"Remove orphaned slots" in the new ZPatterns release would convert
>>old-style Racks to the new B-Tree format. I just tried it, and it
>>deleted all data from the Rack.
>
>Argh.  It's a bug.  And a *stupid* typo at that.  Line 422, which reads:
>
>                 if self.getItem(id) is None: continue
>
>Should actually read:
>
>                 if self.getItem(k) is None: continue
>
>I guess the people doing testing for me had already upgraded their BTrees,
>and didn't try packing.  I personally only tested for conversion of empty
>btrees.
>
>
>
>>BTW, you say above "Zope 2.3.3 or better is required". The ZPatterns
>>web page says "2.3.x". Which is it then?
>
>Um, whichever has the new BTrees.  I originally wrote up all the stuff as
>2.3.x, but then I realized that the new BTrees didn't come along till
>fairly late in the game, which I thought was 2.3.3, but I could be confused.
>
>Meanwhile, nobody pack their racks...  I'm going to get this thing fixed
>and re-uploaded right now.

Ok, I'm finally back working on my ZPatterns projects, and I'm sorry 
to say that this is still broken. Earlier today I created and 
populated a Specialist using Zope 2.3.2 and ZPatterns 0.4.3b2. Then I 
upgraded to ZPatterns 0.4.3p1, verified that line 421 in Rack.py 
reads 'getItem(k)' and packed the Rack. All data disappeared.

Not nice... what's going on? Am I using an unsupported/untested 
setup? I'm pretty sure I shouldn't have to use 2.3.3, everything else 
in 2.3.2 works fine and I think the new BTrees have been around since 
2.3.

Itai
-- 
--
Itai Tavor                      -- "Je sautille, donc je suis."    --
itai@optusnet.com.au            --               - Kermit the Frog --
--                                                                 --
-- "If you haven't got your health, you haven't got anything"      --