[Zope-dev] Re: How bad _are_ ConflictErrors

Victor Safronovich vsafronovich at naumen.ru
Tue Nov 22 02:39:42 EST 2005


Hello, Florent.

you wrote 22 íîÿáðÿ 2005 ã., 2:13:16:


> BTW does someone have a handy script to provoke conflict errors on a
> naked Zope?
 Using http://www.zope.org/Members/kvas/ZAK ( it need some patch for
 zope 2.8) ( you need to read some manual about ZAK )
 
 in 1 browser window try the following code

   import time
   context._p_changed = 1
   time.sleep(2)

 in second browser window

   context._p_changed = 1

 and submit both windows.

 request to zope from first browser window catchs a ConflictError after
 2 seconds.

-- 
Best regards,
 VS



More information about the Zope-Dev mailing list