[Zope-dev] Problems with ZODB and persistence

Chris Withers chrisw at nipltd.com
Thu Sep 25 06:54:07 EDT 2003


Emiliano Marmonti wrote:
> class Autores:
>      def __init__( self, file='dcAuthor.fs' ):
>         self.file= file
>         self.db  = ZODB.DB( FileStorage( file ) )

This is BAD.

The level you're writing stuff at, let Zope take care of the storages, you just 
stick to writing application code ;-)

If you're doing anything more than subclassing persistent, you're doing too much :-)

Chris




More information about the Zope-Dev mailing list