[ZODB-Dev] Storage Interfaces

2007-04-26 Thread Jim Fulton
I've just checked in a fair bit of re-factoring to try to define reasonable storage interfaces. The results can be found at: http://svn.zope.org/ZODB/trunk/src/ZODB/interfaces.py?view=auto and http://svn.zope.org/ZODB/trunk/src/ZEO/interfaces.py?view=auto Some notes: - I added a new t

Re: [ZODB-Dev] getExtensionMethods

2007-04-26 Thread Jim Fulton
For now, I'm leaving this feature in ZEO, but it is not part of any official interfaces. It isn't going to be part of the standard storage API. (I've removed it from the very annoying BaseStorage, which really should be named SimpleStorage.) At some point, I'd still like to hear about s

Re: [ZODB-Dev] ExportImport.py: failing on import of extension class

2007-04-26 Thread Dieter Maurer
Paul Winkler wrote at 2007-4-26 02:13 -0400: >In ExportImport._importDuringCommit() I found this little gem: > >pfile = StringIO(data) >unpickler = Unpickler(pfile) >unpickler.persistent_load = persistent_load > >newp = StringIO() >pickler

Re: [ZODB-Dev] ExportImport.py: failing on import of extension class

2007-04-26 Thread Jim Fulton
On Apr 26, 2007, at 11:17 AM, Paul Winkler wrote: On Thu, Apr 26, 2007 at 10:51:55AM -0400, Jim Fulton wrote: Old-style extension classes become new-style classes in Zope 2.8 and later. Extension Classes *are* new stype classes in Zope 2.8 and beyond. That's what I thought. But my .zexp cam

Re: [ZODB-Dev] ExportImport.py: failing on import of extension class

2007-04-26 Thread Paul Winkler
On Thu, Apr 26, 2007 at 10:51:55AM -0400, Jim Fulton wrote: > Old-style extension classes become new-style classes in Zope 2.8 and > later. Extension Classes *are* new stype classes in Zope 2.8 and > beyond. That's what I thought. But my .zexp came from Zope 2.7.8 instance, and I'm loading it

Re: [ZODB-Dev] ExportImport.py: failing on import of extension class

2007-04-26 Thread Jim Fulton
On Apr 26, 2007, at 10:44 AM, Paul Winkler wrote: On Thu, Apr 26, 2007 at 10:10:17AM -0400, Jim Fulton wrote: On Apr 26, 2007, at 2:13 AM, Paul Winkler wrote: In ExportImport._importDuringCommit() I found this little gem: pfile = StringIO(data) unpickler = Unpickler(pf

Re: [ZODB-Dev] ExportImport.py: failing on import of extension class

2007-04-26 Thread Paul Winkler
On Thu, Apr 26, 2007 at 10:10:17AM -0400, Jim Fulton wrote: > On Apr 26, 2007, at 2:13 AM, Paul Winkler wrote: > > >In ExportImport._importDuringCommit() I found this little gem: > > > >pfile = StringIO(data) > >unpickler = Unpickler(pfile) > >unpickler.persiste

Re: [ZODB-Dev] ExportImport.py: failing on import of extension class

2007-04-26 Thread Jim Fulton
On Apr 26, 2007, at 2:13 AM, Paul Winkler wrote: In ExportImport._importDuringCommit() I found this little gem: pfile = StringIO(data) unpickler = Unpickler(pfile) unpickler.persistent_load = persistent_load newp = StringIO() pickler