[Zope-dev] Transaction environment in threaded zope-product

Christian Theune ct@gocept.com
Fri, 9 Nov 2001 12:46:22 +0100


Hi.

I have a zope product, that uses threads, to control programs
running outside zope and doing some async stuff.

What I found is, that i can't do changes from the self-started
thread (ChrisW: that's the problem... ;) ).

But how do I get into a transaction do be able to change things on
persistent objects?

get_transaction().begin() doesn't work, and I don't find any
documentation to get started from ...

plz help me

Christian

-- 
Christian Theune - ct@gocept.com
gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981

reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])