[ZODB-Dev] Reloading product in 2.8

2005-07-12 Thread Victor Safronovich
Hello zodb developers! My product has 'Auto refresh mode' option checked. I changed some source code of my product, after that autorefresh have been occured. And after autorefresh I got strange several errors: this error was accure almost after all autorefreshs. 1. 2005-07-12 17:44:07

Re: [ZODB-Dev] zodb connection question

2005-07-12 Thread Jim Fulton
Jürgen Herrmann wrote: [ Jim Fulton wrote:] Jürgen Herrmann wrote: hi all! i'm trying to form a patch that will result in a method _before_commit() being called on each modified object in a transaction (if that method exists of course) right before commit. main sense is to automate/delay

Re: [ZODB-Dev] zodb connection question

2005-07-12 Thread Jürgen Herrmann
[ Jim Fulton wrote:] Jürgen Herrmann wrote: [ Jim Fulton wrote:] Jürgen Herrmann wrote: hi all! i'm trying to form a patch that will result in a method _before_commit() being called on each modified object in a transaction (if that method exists of course) right before commit. main sense is

Re: [ZODB-Dev] Savepoints are invalidated once they are used

2005-07-12 Thread Jeremy Hylton
On 7/12/05, Tim Peters [EMAIL PROTECTED] wrote: [Jeremy Hylton] IIRC, the old implementation of savepoints kept a copy of the index at the time the savepoint was taken so that you could rollback to it multiple times. I don't think there's any way to avoid such a copy. Right, and the

RE: [ZODB-Dev] Re: Savepoints are invalidated once they are used

2005-07-12 Thread Tim Peters
[Christian Heimes, suggests changing Transaction.commit() to start with if subtransaction: # TODO deprecate subtransactions self._subtransaction_savepoint = self.savepoint(1) return if self._savepoint2index:

Re: [ZODB-Dev] zodb connection question

2005-07-12 Thread Jim Fulton
Jürgen Herrmann wrote: [ Jim Fulton wrote:] Jürgen Herrmann wrote: [ Jim Fulton wrote:] Jürgen Herrmann wrote: hi all! i'm trying to form a patch that will result in a method _before_commit() being called on each modified object in a transaction (if that method exists of course) right

Re: [ZODB-Dev] Re: Savepoints are invalidated once they are used

2005-07-12 Thread Jim Fulton
Tim Peters wrote: [Christian Heimes, suggests changing Transaction.commit() to start with if subtransaction: # TODO deprecate subtransactions self._subtransaction_savepoint = self.savepoint(1) return if self._savepoint2index:

[ZODB-Dev] Re: Savepoints are invalidated once they are used

2005-07-12 Thread Christian Heimes
Jim Fulton wrote: A good community project would be to convert all of the subtransaction calls in Zope to savepoint calls. Done I found commit(1) in Zope3 zope.app.file.file Pdata handling and in code and tests in Zope2. Christian ___ For more

RE: [ZODB-Dev] Savepoints are invalidated once they are used

2005-07-12 Thread Tim Peters
[Jeremy Hylton] I understand. The further invariant is that the index captured when a savepoint created is immutable. Or at least acts like it. Copying is an easy-to-code and effective way to ensure that, and I don't know of a better feasible way. Capturing a lot of savepoints (or doing a

RE: [ZODB-Dev] Re: Savepoints are invalidated once they are used

2005-07-12 Thread Tim Peters
[Jim Fulton] A good community project would be to convert all of the subtransaction calls in Zope to savepoint calls. [Christian Heimes] Done I found commit(1) in Zope3 zope.app.file.file Pdata handling and in code and tests in Zope2. Bless you! Alas, I haven't received any messages from

Re: [ZODB-Dev] Re: Savepoints are invalidated once they are used

2005-07-12 Thread Christian Heimes
Tim Peters wrote: Bless you! Alas, I haven't received any messages from any Zope Corp checkin list since Sunday, so we'll just have to take your word for it wink. svn diff -r 33279:33280 \ svn+ssh://svn.zope.org/repos/main/Zope/branches/Zope-2_8-branch

Re: [ZODB-Dev] Reloading product in 2.8

2005-07-12 Thread Lennart Regebro
On 7/12/05, Jens Vagelpohl [EMAIL PROTECTED] wrote: On 12 Jul 2005, at 13:17, Victor Safronovich wrote: previous Zope version, which I used, was 2.6.1, but it was very old version and I decided to jump to 2.8.0. I took problems with autorefresh. What can I do to solve my problems?

Re: [ZODB-Dev] Reloading product in 2.8

2005-07-12 Thread Jens Vagelpohl
On 12 Jul 2005, at 18:17, Lennart Regebro wrote: previous Zope version, which I used, was 2.6.1, but it was very old version and I decided to jump to 2.8.0. I took problems with autorefresh. What can I do to solve my problems? If it creates problems then simply don't use it. That's not a

Re: [ZODB-Dev] Reloading product in 2.8

2005-07-12 Thread Gary Poster
On Jul 12, 2005, at 1:46 PM, Jens Vagelpohl wrote: On 12 Jul 2005, at 18:17, Lennart Regebro wrote: previous Zope version, which I used, was 2.6.1, but it was very old version and I decided to jump to 2.8.0. I took problems with autorefresh. What can I do to solve my problems? If it

Re: [ZODB-Dev] Reloading product in 2.8

2005-07-12 Thread Lennart Regebro
On 7/12/05, Jens Vagelpohl [EMAIL PROTECTED] wrote: On 12 Jul 2005, at 18:17, Lennart Regebro wrote: previous Zope version, which I used, was 2.6.1, but it was very old version and I decided to jump to 2.8.0. I took problems with autorefresh. What can I do to solve my problems?

RE: [ZODB-Dev] Reloading product in 2.8

2005-07-12 Thread Tim Peters
[Victor Safronovich, having problems with auto refresh] Victor (et alia), I think a discussion of auto-refresh would be more useful on a Zope list -- it's not really (AFAIK) a ZODB issue. This is what changed in ZODB, from ZODB 3.3c1's NEWS file (and no, it won't be changed back to the way it

RE: [ZODB-Dev] zodb connection question

2005-07-12 Thread Tim Peters
[Jürgen Herrmann] ... so, what i need is a way to have my mechanism called before transaction commits (would be possible to use the hooks provided by zodb 3.4 for that, sure) and cycle through all modified objects (that's where the hooks in 3.4 are not enough for me, they don't provide any way

Re: [ZODB-Dev] Reloading product in 2.8

2005-07-12 Thread Jens Vagelpohl
Imagine if somebody tried to use ZPTs, and the answer to any question where you get errors from it is well, then don't use it? It's just not a viable answer. Refresh is not a core functionality like ZPT. That comparison is a bit outlandish. If it is the majoritys agreement that this

Re: [ZODB-Dev] Try and fail connect strategy for zeo/zrpc

2005-07-12 Thread Chris Withers
Sidnei da Silva wrote: | Does't the *already included* zeoup.py do exactly what you are trying | to do? See the bin directory of your zope home. Unfortunately no. It uses ClientStorage, which goes through the 1000's of lines of the connection dance using connect threads and large timeouts.

Re: [ZODB-Dev] Reloading product in 2.8

2005-07-12 Thread Lennart Regebro
On 7/12/05, Jens Vagelpohl [EMAIL PROTECTED] wrote: If it is the majoritys agreement that this answer is the best one, and that the refresh functionality should be looked at as something that may or may not work purely on luck, then I'll mark it as deprecated and up for removal in 2.10.