RE: [Zope] Python Products and ZODB Transactions
At 12:27 PM 1/23/01 +, 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 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
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:[EMAIL PROTECTED]] > Sent: 23 January 2001 11:11 > To: [EMAIL PROTECTED] > 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 > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Python Products and ZODB Transactions
On Tue, 23 Jan 2001 03:28:34 -0600, Stephan Richter <[EMAIL PROTECTED]> wrote: >Hello everyone, > >wow, I haven't posted here for a while now, but now I came to a bigger >problem and I hope someone of you will have some suggestions: > >I built a Python Product that saves and gets data from a RDB. Whenever a >method is called from my Python Product, the ZODB saves the transaction, >even though the object was not modified at all. I really would like the >ZODB to never save any of my Products actions. Any ideas? Use the tranalyzer to see which objects are being commited. They think they are being modified, even if you dont think they should be. http://www.zope.org/Members/tsarna/Tranalyzer Toby Dickenson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )