[Zope-dev] ZClass inheriting from Python Class

Michel Pelletier michel@digicool.com
Thu, 22 Jul 1999 10:27:16 -0400


> -----Original Message-----
> From: Miller, John M. [mailto:jmiller1@uop.com]
> Sent: Thursday, July 22, 1999 8:48 AM
> To: 'M.Faassen@vet.uu.nl'; zope-dev@zope.org
> Subject: RE: [Zope-dev] ZClass inheriting from Python Class
> 
> 
> Heya,
> 
> If I've read and interpreted the Documentation properly, you 
> need to make
> your Python class a subclass of BoboPOS.Persistent.  Then I 

Actually, Persistence.Persistent.  BoboPOS will work but it's not 'the
way'.  It's legacy.

> think you need
> to do something like get_transaction().commit() when you want 
> to commit
> changes you've made.  Though it may be that Zope takes care 

You don't really ever need to do this if you treat all attributes
immutibly.

> of transactions
> most of the time and you don't have to worry about this.  I also just
> discovered a 27 page document on ZODB 3 (cool! the more stuff 
> to read, the
> better I say) which definitely will have a more definitive 
> answer than my
> casual hack.
>