[Zope] ZODB Persistence problem

Chris Withers chrisw at nipltd.com
Thu Sep 25 08:22:49 EDT 2003


Dieter Maurer wrote:
> Somehow, you succeeded to let Python think this class were
> defined in "App.PersistentExtra".
> 
> I have no idea how you could do that...

class Autores:
      def __init__( self, file='dcAuthor.fs' ):
         self.file= file
         self.db  = ZODB.DB( FileStorage( file ) )
         self.co  = self.db.open()
         self.root= self.co.root()

I'm pretty sure this code is suicidal ;-)

Chris




More information about the Zope mailing list