[Zope-dev] problems setting up methods for a product that registers no classes

2005-09-29 Thread Chris Withers
...zdb in this case. I need to make a global recompile function available, since zdb requires the co_filename attribute of the script's func_code object to be set to something meaningful, rather than the useless Script (Python) it usually gets set to. Once zdb is installed, any scripts

[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

[Zope-dev] 'Savepoints unsupported' on uploading files into zope

2005-09-29 Thread Chris Withers
lavrinenko wrote: I suspect the bug is in Image.py, and the whole database adapters thing is a red herring. Either that, or Shared.ZRDB has become geb0rken in 2.8 when it comes to savepoints. ..or, as another possibility, both the DA's these errors have been reported with haven't been

[Zope-dev] Re: 'Savepoints unsupported' on uploading files into zope

2005-09-29 Thread Chris Withers
lavrinenko wrote: RDB-based user folder? ZSQL methods being used somewhere? Yes, exUserFolder with MySQL Authentication Source Try SimpleUserFolder ;-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

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

[Zope-dev] Strange security issue with Zope 2.8.1

2005-09-29 Thread Jens Vagelpohl
I have found a strange security issue with Zope 2.8.1 that seems to stem from code not doing what it was supposed to do in Zope 2.7.x, but which works in 2.8.1 and then causes other side effects in code that relied on the broken behavior. Symptom: In Zope 2.8.1 it is *impossible* to

[Zope-dev] Re: Strange security issue with Zope 2.8.1

2005-09-29 Thread Florent Guillaume
Jens Vagelpohl wrote: I have found a strange security issue with Zope 2.8.1 that seems to stem from code not doing what it was supposed to do in Zope 2.7.x, but which works in 2.8.1 and then causes other side effects in code that relied on the broken behavior. Symptom: In Zope 2.8.1 it is

Re: [Zope-dev] problems setting up methods for a product that registers no classes

2005-09-29 Thread Dieter Maurer
Chris Withers wrote at 2005-9-29 09:17 +0100: ...zdb in this case. I need to make a global recompile function available, since zdb requires the co_filename attribute of the script's func_code object to be set to something meaningful, rather than the useless Script (Python) it usually gets set