[Zope] timeout, thread, and external connections

Dieter Maurer dieter@handshake.de
Mon, 6 May 2002 18:29:48 +0200


Warnes, Gregory R writes:
 > So far, google has turned up
 > http://www.python.org/workshops/2000-01/proceedings/papers/fulton/zodb3.html
 > , and http://www.zope.org/Documentation/ZDG
That's good documentation.

 > It seems that each zope thread may end up with a different copy of the
 > object. 
That is indeed the case.
 > For my purpose, this is not desirable.  Is there a way to ensure
 > that there is exactly one copy of my process wrapper?
Not with "_v_" variables but you may look at "SharedResource"

  <http://www.dieter.handshake.de/pyprojects/zope>

If you use it directly, you must again hande your timeouts yourself.
But you can try to combine both approaches through explicit
reference counting. When all references go away, you terminate your process.


Dieter