Re: [Zope-dev] weird Page Template / ZODB history problem with Zope 2.12.7

2010-09-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/28/2010 03:36 AM, Chris Withers wrote:
 On 28/09/2010 00:12, Marius Gedminas wrote:
 --- ./OFS/History.py.orig2010-09-28 02:11:56.535745440 +0300
 +++ ./OFS/History.py 2010-09-28 02:12:00.043764683 +0300
 @@ -151,6 +151,9 @@
   base = aq_base(self)
   base._p_activate()   # make sure we're not a ghost
   base.__setstate__(state) # change the state
 +for attr in dir(base):
 +if attr.startswith('_v_'):
 +delattr(base, attr)
   base._p_changed = True   # marke object as dirty
   self.manage_afterHistoryCopy()
 
 Thanks, I guess I'll monkey patch for now, here's the bug:
 
 https://bugs.launchpad.net/zope2/+bug/649605
 
 However, I'm curious, so the above will fix the object in the current 
 thread, but what about objects in other threads?
 
 (or do _v_ attributes get killed off at the start of each transaction?)

Only when objects are ghostified (due to an invalidation from another
thread or process) or evicted from the cache.  I'm not quite sure how
the case you are triggering occurs, but if that code saves the new-old
version of the template to the ZODB, then any instances in other
threads' connection caches should be invalidated.


Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyh17wACgkQ+gerLs4ltQ6RVQCguN4WMtI8LqzJ7LrwIjB0sNAL
yjUAoMApTFJXqBqBVtAyxBWwJI1x7dFV
=6BKq
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope Tests: 45 OK, 7 Failed, 3 Unknown

2010-09-28 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Mon Sep 27 12:00:00 2010 UTC to Tue Sep 28 12:00:00 2010 UTC.
There were 55 messages: 6 from Zope Tests, 4 from buildbot at pov.lt, 20 from 
buildbot at winbot.zope.org, 11 from ccomb at free.fr, 14 from jdriessen at 
thehealthagency.com.


Test failures
-

Subject: FAILED : winbot / ztk_dev py_265_win32
From: buildbot at winbot.zope.org
Date: Mon Sep 27 16:20:45 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020674.html

Subject: FAILED : winbot / ztk_dev py_265_win64
From: buildbot at winbot.zope.org
Date: Mon Sep 27 16:30:36 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020675.html

Subject: FAILED : winbot / zc_buildout_dev py_244_win32
From: buildbot at winbot.zope.org
Date: Mon Sep 27 17:16:26 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020682.html

Subject: FAILED : Zope Buildbot / ztk slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Mon Sep 27 17:37:11 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020686.html

Subject: FAILED : Zope Buildbot / ztk slave-ubuntu32
From: jdriessen at thehealthagency.com
Date: Mon Sep 27 17:43:30 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020690.html

Subject: FAILED : winbot / zc_buildout_dev py_265_win64
From: buildbot at winbot.zope.org
Date: Mon Sep 27 17:53:27 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020691.html

Subject: FAILED : winbot / zc_buildout_dev py_270_win64
From: buildbot at winbot.zope.org
Date: Mon Sep 27 18:18:59 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020693.html


Unknown
---

Subject: UNKNOWN : winbot / ztk_dev py_254_win32
From: buildbot at winbot.zope.org
Date: Mon Sep 27 16:10:01 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020673.html

Subject: UNKNOWN : winbot / ztk_dev py_270_win32
From: buildbot at winbot.zope.org
Date: Mon Sep 27 16:30:37 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020677.html

Subject: UNKNOWN : winbot / ztk_dev py_270_win64
From: buildbot at winbot.zope.org
Date: Mon Sep 27 16:30:38 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020676.html


Tests passed OK
---

Subject: OK : Zope Buildbot / zope2 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Mon Sep 27 14:53:46 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020669.html

Subject: OK : Zope Buildbot / zope2 slave-ubuntu32
From: jdriessen at thehealthagency.com
Date: Mon Sep 27 14:53:53 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020670.html

Subject: OK : Zope Buildbot / zope2.12 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Mon Sep 27 14:56:10 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020671.html

Subject: OK : Zope Buildbot / zope2.12 slave-ubuntu32
From: jdriessen at thehealthagency.com
Date: Mon Sep 27 14:56:21 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020672.html

Subject: OK : winbot / ztk_10 py_244_win32
From: buildbot at winbot.zope.org
Date: Mon Sep 27 16:39:49 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020678.html

Subject: OK : winbot / ztk_10 py_254_win32
From: buildbot at winbot.zope.org
Date: Mon Sep 27 16:48:16 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020679.html

Subject: OK : winbot / ztk_10 py_265_win32
From: buildbot at winbot.zope.org
Date: Mon Sep 27 16:56:21 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020680.html

Subject: OK : winbot / ztk_10 py_265_win64
From: buildbot at winbot.zope.org
Date: Mon Sep 27 17:04:44 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020681.html

Subject: OK : winbot / zc_buildout_dev py_254_win32
From: buildbot at winbot.zope.org
Date: Mon Sep 27 17:28:10 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020683.html

Subject: OK : Zope Buildbot / zope2.12 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Mon Sep 27 17:31:34 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020684.html

Subject: OK : Zope Buildbot / zope2 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Mon Sep 27 17:33:19 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020685.html

Subject: OK : Zope Buildbot / zope2.12 slave-ubuntu32
From: jdriessen at thehealthagency.com
Date: Mon Sep 27 17:37:13 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020687.html

Subject: OK : Zope Buildbot / zope2 slave-ubuntu32
From: jdriessen at thehealthagency.com
Date: Mon Sep 27 17:39:01 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/020688.html

Subject: OK : winbot / zc_buildout_dev py_265_win32
From: buildbot at winbot.zope.org
Date: Mon Sep 27 

Re: [Zope-dev] ZODB history problem with Zope 2.12.7

2010-09-28 Thread Chris Withers
On 28/09/2010 12:55, Tres Seaver wrote:
 On 09/28/2010 03:36 AM, Chris Withers wrote:
 On 28/09/2010 00:12, Marius Gedminas wrote:
 --- ./OFS/History.py.orig   2010-09-28 02:11:56.535745440 +0300
 +++ ./OFS/History.py2010-09-28 02:12:00.043764683 +0300
 @@ -151,6 +151,9 @@
base = aq_base(self)
base._p_activate()   # make sure we're not a ghost
base.__setstate__(state) # change the state
 +for attr in dir(base):
 +if attr.startswith('_v_'):
 +delattr(base, attr)
base._p_changed = True   # marke object as dirty
self.manage_afterHistoryCopy()

 Thanks, I guess I'll monkey patch for now, here's the bug:

 https://bugs.launchpad.net/zope2/+bug/649605

 However, I'm curious, so the above will fix the object in the current
 thread, but what about objects in other threads?

 (or do _v_ attributes get killed off at the start of each transaction?)

 Only when objects are ghostified (due to an invalidation from another
 thread or process) or evicted from the cache.  I'm not quite sure how
 the case you are triggering occurs, but if that code saves the new-old
 version of the template to the ZODB, then any instances in other
 threads' connection caches should be invalidated.

Feel free to repeat the steps I originally posted and are in the bug 
description ;-)

Looks like the History.py code isn't doing something it should, but I 
don't know when or what changed to make this so. I'll CC zodb-dev in 
case Jim knows of any changes in ZODB (I'm using 3.9.6) that might be 
relevant...

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing  Python Consulting
 - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Developer meeting next Tuesday at 15:00 UTC

2010-09-28 Thread Christian Theune
Hi,

On 09/24/2010 07:56 PM, Christian Theune wrote:
 Good evening,

 another developer meeting is coming up next Tuesday at 15:00 UTC.

 During the meta-discussion this week Charlie mentioned that we really
 need to keep following up on the issues/goals/topics that were
 identified during the summit.

 So, before returning to pure maintenance topics and as the summary [1]
 is online now, I'll open up the next agenda to deal with the outcome of
 the summit.

I won't be there today as I have to fix some stuff around my flat, but 
I'll go through the logs tomorrow.

Christian

-- 
Christian Theune · c...@gocept.com
gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Developer meeting next Tuesday at 15:00 UTC

2010-09-28 Thread Charlie Clark
Am 28.09.2010, 16:42 Uhr, schrieb Christian Theune c...@gocept.com:

 I won't be there today as I have to fix some stuff around my flat, but
 I'll go through the logs tomorrow.

I guess this means a job for Theuni's stand-in! See you all in a few  
minutes. :-D

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting  Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope Toolkit 1.0c2 release

2010-09-28 Thread Hanno Schlichting
Hello.

On behalf of the Zope Toolkit release team and the Zope community, I'm
happy to announce the second release candidate of the Zope Toolkit
version 1.0.

Compared to the first release candiate we solved all the problems with
packages having test dependencies on other deprecated packages.

You can read more about the release at
http://docs.zope.org/zopetoolkit/releases/overview-1.0c2.html. The
first ZTK release supports all of Python 2.4, 2.5 and 2.6.

To use the ZTK release, you can use:

[buildout]
extends =
   http://download.zope.org/zopetoolkit/index/1.0c2/ztk-versions.cfg
   http://download.zope.org/zopetoolkit/index/1.0c2/zopeapp-versions.cfg

This release focuses on cleaning up the ztk and zopeapp package lists
by deprecating packages that are not used by any of the frameworks
that use the ZTK.

We'd encourage everyone to test this release and notify us of any
problems you find. Depending on the feedback we get we'll release a
final release in the next two weeks.

We post our meeting notes at
http://docs.zope.org/zopetoolkit/releaseteam/index.html. Feel free to
start discussing with us on this mailing list.

Kind regards,
Hanno Schlichting
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope Toolkit 1.0c2 release

2010-09-28 Thread Gediminas Paulauskas
2010/9/28 Hanno Schlichting ha...@hannosch.eu:
 Hello.

 On behalf of the Zope Toolkit release team and the Zope community, I'm
 happy to announce the second release candidate of the Zope Toolkit
 version 1.0.

 Compared to the first release candiate we solved all the problems with
 packages having test dependencies on other deprecated packages.

 You can read more about the release at
 http://docs.zope.org/zopetoolkit/releases/overview-1.0c2.html. The
 first ZTK release supports all of Python 2.4, 2.5 and 2.6.

 To use the ZTK release, you can use:

 [buildout]
 extends =
   http://download.zope.org/zopetoolkit/index/1.0c2/ztk-versions.cfg
   http://download.zope.org/zopetoolkit/index/1.0c2/zopeapp-versions.cfg

The 1.0c2 tag has been copied from trunk, but it was supposed to be
made from the 1.0 branch.

The release overview also mentions 1.1a1 and has versions from trunk.

 This release focuses on cleaning up the ztk and zopeapp package lists
 by deprecating packages that are not used by any of the frameworks
 that use the ZTK.

This note applies only to trunk. Only one package was deprecated in 1.0 branch.

 We'd encourage everyone to test this release and notify us of any
 problems you find. Depending on the feedback we get we'll release a
 final release in the next two weeks.

 We post our meeting notes at
 http://docs.zope.org/zopetoolkit/releaseteam/index.html. Feel free to
 start discussing with us on this mailing list.

 Kind regards,
 Hanno Schlichting
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope 2.12/trunk on Windows

2010-09-28 Thread Alan Runyan
On Tue, Sep 28, 2010 at 6:09 AM, Martin Aspeli optil...@gmail.com wrote:
 What bugs? We're seeing problems running zope as  Windows services.
 Wondering if this is related.

Nikolay can give more detail.  Zcatalog and acquisition need to be
re-released (changes were applied yesterday) to fix overflow errors.

alan
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )