[Zope] Hourly restarts of Zope

Jason Abate jason@hostway.net
Thu, 16 Dec 1999 09:38:14 -0600


Michel-

> Are you calling Persistent.__setstate__(self, state) in your setstate
> method?  If you don't call it, the persistent machinery would probably
> be very unhappy, and since it's written in C, might core dump... just an
> idea.

Where is the Persistent class defined?  All I can find is
lib/python/Persistence.py, but that only contains the Zope license
information and a doc. string.  No actual classes are defined there.  When I
try to subclass Persistent, I get an error about the class not being found:

  >>> import Persistence
  >>> class myclass(Persistence.Persistent):
  ...     def __init__(self):
  ...         print "In init"
  ...
  Traceback (innermost last):
    File "<stdin>", line 1, in ?
  AttributeError: Persistent

Am I missing something here?  Do things work differently if the module is
written in C?

Thanks,

-jason

--
Jason Abate
Hostway Corporation
jason@hostway.com