RE: [Zope] Python Products and ZODB Transactions
If your method changes data then it will always get saved. The only way is to make sure your method never modifies a persistent object.
-----Original Message----- From: Stephan Richter [mailto:srichter@cbu.edu] Sent: 23 January 2001 11:11 To: tdickenson@geminidataloggers.com Subject: Re: [Zope] Python Products and ZODB Transactions
Use the tranalyzer to see which objects are being commited. They think they are being modified, even if you dont think they should be.
Okay, I found the methods and they are sometimes changed. But now, it should NEVER save the transaction. Is there a way to do that?
Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development & Technical Project Management
At 12:27 PM 1/23/01 +0000, Toby Dickenson wrote:
If your method changes data then it will always get saved. The only way is to make sure your method never modifies a persistent object.
Mmmhh, so my answer is not to derive my classes from Persistent. Will it then actually store the object in the ZODB? How does that work? That is the C part of Zope and I am not too efficient with C. Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development & Technical Project Management
participants (2)
-
Stephan Richter -
Toby Dickenson