[Zope-Coders] Re: SEGFAULT using ComputedAttribute

Derrick Hudson dman at dman13.dyndns.org
Fri Jan 21 18:29:41 EST 2005


On Wed, Jan 19, 2005 at 04:08:38PM -0200, Dorneles Treméa wrote:
| Hi Derrick,
| 
| >I discovered that if you try to store an instance of a class that does
| >not inherit from Persistent then Zope can crash when the ZODB tries to
| >store that object.  Perhaps you are inadvertently trying to do the
| >same thing?
| 
| thanks for the info. I also already heard about it, but never got
| *hit* by it! :-)
| 
| What's the recommended way to see what is 'pending' (all objects) at
| current transaction and will be commited when calling t.commit()? Is
| there also an easy way to check for the Persistent objects?

I don't know what the recommended way is.  I happened to figure it out
in my case by reading a relevant note in some documentation and by
explicitly trying it.  In my case I was moving some objects using
_setObject() so it was quite simple for me, once I realized that's
what caused the segfault.

-D

-- 
The Consultant's Curse:
    When the customer has beaten upon you long enough, give him
what he asks for, instead of what he needs.  This is very strong
medicine, and is normally only required once.
 
www: http://dman13.dyndns.org/~dman/            jabber: dman at dman13.dyndns.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-coders/attachments/20050121/b30bb973/attachment.bin


More information about the Zope-Coders mailing list