[ZODB-Dev] Re: Ape storage problem

Shane Hathaway shane at hathawaymix.org
Wed Jun 30 22:32:01 EDT 2004


On Wednesday 30 June 2004 14:03 pm, Michael Haubenwallner wrote:
> After some more research i found a simpler explanation: records are
> created but sometimes not stored in postgres database - when zodb
> refreshes, the objects held in ram are gone (so this is not a problem of
> storing portal_skins).
>
> problem is, that there is no error reported when objects are created but
> storage to the postgres db 'fails'.
>
> how could i enable error reporting in this situation?

Look for greedy exception handlers. They usually look like this in Python:

try:
    ...
except:
    pass

And they usually look like this in C:

if (PyErr_Occurred())
  PyErr_Clear();

I would look in Ape, the Postgres database adapter, and ZODB.

Shane


More information about the ZODB-Dev mailing list