Re: [Zope] Is there a way to force a commit ??
Forcing a commit fixed my problem. So I wouldn't say its nonsense. My guess is that, yes all properties of a ZClass when changed are readily available within that thread. But, the manage_clone method I was using is pulling and putting objects straight off of the ZODB and not from my transaction space. Please correct me if I am wrong. Cayce --- Martijn Pieters <mj@antraciet.nl> wrote:
Absolute nonsense. Within your thread, all changes you make are immediatly visible, no commit is needed. If you have problems changing a newly created ZClass instances properties, then the problem lies elsewhere.
--
At 04:41 14/10/99 , Cayce Ullman wrote:
I have noticed others asking questions similar to this, but have not seen an answer. It seems that it is not possible to change the properties of a newly cloned zClass within the same DTML in one click. Common sentiment seems to think that the newly created object is not yet set down or commited. Is there any way to force a commit, maybe using dtml-try, or an external method, or something?
===== __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com
At 11:24 16/10/99 , Cayce Ullman wrote:
Forcing a commit fixed my problem. So I wouldn't say its nonsense. My guess is that, yes all properties of a ZClass when changed are readily available within that thread. But, the manage_clone method I was using is pulling and putting objects straight off of the ZODB and not from my transaction space. Please correct me if I am wrong.
Cayce
Oops, my fault. I misunderstood the fact you were cloning an object. Still sound somewhat strange to me it's outside your transaction though, because commiting only commits your transaction. If it also commits the clone, that was in your space as well. Maybe all you need is a sync (object._p_jar.sync()). -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (2)
-
Cayce Ullman -
Martijn Pieters