Re: SEGFAULT using ComputedAttribute
Derrick Hudson <[email protected]>
| Newsgroups | gmane.comp.web.zope.coders |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected]
_______________________________________________
Zope-Coders mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zope-coders
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFB8ZBliB6vp1xAVUARAuJtAJsFYwSZISdp/VVWdvEXSOffo1bARwCdFb71 dOnFHT+ZzgObJodA4YsLw1o= =2zMQ -----END PGP SIGNATURE-----