[Zope-dev] Broken Objects in BtreeFolder

2009-08-10 Thread Patrick Gerken
Hi, we had all kinds of funny behaviour that all was rooted in a bad object in a BTreeFolder. When calling folder.objectIds() I get the id of the object in question, when I call folder[object_id] I get a Key Error. Stepping into the code with the debugger, it looked like the Tree stores the

[Zope-dev] Broken objects

2005-09-29 Thread Victor Safronovich
Hello zope-dev! http://www.zope.org/Collectors/Zope/1911 I try to migrate my old database from zope 2.6.1. I have Broken objects, but it is impossible to get its state in Zope 2.8. In Zope 2.6 Broken objects have states, what i uses to migrate its. I think this is because DB.classFactory

Re: [Zope-dev] Broken objects

2005-09-29 Thread Chris Withers
Victor Safronovich wrote: I have Broken objects, but it is impossible to get its state in Zope 2.8. In Zope 2.6 Broken objects have states, what i uses to migrate its. I think that was more by luck than by design, but maybe whoever made the change can help you out... I think this is

Re[2]: [Zope-dev] Broken objects

2005-09-29 Thread Victor Safronovich
Hello Chris Withers, Thursday, September 29, 2005, 2:44:52 PM, you wrote: CW I think that was more by luck than by design, but maybe whoever made the CW change can help you out... I think broken object MUST use ZODB.broken.Broken not OFS.Uninstalled.Broken CW What makes it a bad persisten

Re: [Zope-dev] Broken objects

2005-09-29 Thread Jim Fulton
Victor Safronovich wrote: Hello zope-dev! http://www.zope.org/Collectors/Zope/1911 I try to migrate my old database from zope 2.6.1. I have Broken objects, but it is impossible to get its state in Zope 2.8. In Zope 2.6 Broken objects have states, what i uses to migrate its. I think

Re[2]: [Zope-dev] Broken objects

2005-09-29 Thread Victor Safronovich
Hello Jim Fulton, Thursday, September 29, 2005, 2:57:47 PM, you wrote: JF Victor Safronovich wrote: Hello zope-dev! http://www.zope.org/Collectors/Zope/1911 I try to migrate my old database from zope 2.6.1. I have Broken objects, but it is impossible to get its state in Zope 2.8.

Re: [Zope-dev] Broken objects

2005-09-29 Thread Jim Fulton
So I guess it didn't work. :) I'll look into this. The first step will be to write a test for this. The intent was definately that you would be able to get to a broken object's state. Jim Victor Safronovich wrote: Hello Jim Fulton, Thursday, September 29, 2005, 2:57:47 PM, you wrote: JF

Re[3]: [Zope-dev] Broken objects

2005-09-29 Thread Victor Safronovich
Hello Victor Safronovich, Thursday, September 29, 2005, 4:03:17 PM, you wrote: VS I think __setattr__ and __setstate__ overriden by ExtensionClass, but needfully VS must be from Persistent. Or classFactory must return VS ZODB.broken.{Persistent}Broken objects I changed BrolenClass.__bases__

Re: [Zope-dev] Broken objects

2005-09-29 Thread Jim Fulton
Victor Safronovich wrote: Hello zope-dev! http://www.zope.org/Collectors/Zope/1911 I try to migrate my old database from zope 2.6.1. I have Broken objects, but it is impossible to get its state in Zope 2.8. In Zope 2.6 Broken objects have states, what i uses to migrate its. I think

Re[2]: [Zope-dev] Broken objects

2005-09-29 Thread Victor Safronovich
Hello Jim Fulton, Thursday, September 29, 2005, 4:34:31 PM, you wrote: JF So I guess it didn't work. :) JF I'll look into this. The first step will be to write a test for this. JF The intent was definately that you would be able to get to a broken object's JF state. not Test but for example (

Re[2]: [Zope-dev] Broken objects

2005-09-29 Thread Victor Safronovich
Hello Jim Fulton, Thursday, September 29, 2005, 5:02:46 PM, you wrote: JF Could you tell me more about what you want to happen? i want to get the states of broken objects, to migrate them. -- Best regards, Victor Safronovich NauMen.NauDoc.SoftwareDeveloper http://www.naumen.ru