[Zope-dev] Zope Tests: 2 OK, 3 Failed

2008-09-20 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Fri Sep 19 11:00:00 2008 UTC to Sat Sep 20 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Test failures - Subject: FAILED (failures=1) : Zope-2.10 Python-2.4.4 : Linux From: Zope Tests Date: Fri Sep 19 20:54:54 EDT

Re: [Zope-dev] zc.dict.OrderedDict efficiency

2008-09-20 Thread Gary Poster
On Sep 18, 2008, at 4:02 PM, Benji York wrote: On Thu, Sep 18, 2008 at 3:52 PM, Thomas Lotze [EMAIL PROTECTED] lotze.de wrote: The documentation of OrderedDict from zc.dict 1.2.1 states that the current implementation is inefficient for large collections because it uses a PersistentList

Re: [Zope] A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-20 Thread Dieter Maurer
Marco Bizzarri wrote at 2008-9-19 09:23 +0200: ... I assume therefore that the ZPsycopgDA object has been ghostified, during the transaction. But this assumption is not supported by any evidence. In particular, it is not supported by my knowledge of the internal behaviour of ZODB on objects

Re: [Zope] [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-20 Thread Dieter Maurer
Tres Seaver wrote at 2008-9-19 09:33 -0400: ... There is a special 'STICKY' state which prevents ghostifying, but it can't be set from Python code. You could, however, set '_p_changed' on the connection at the beginning of the method, and then delete it at the end: changed objects can't be

Re: [Zope] [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-20 Thread Dieter Maurer
Tres Seaver wrote at 2008-9-19 10:15 -0400: ... There are two problems here: - We need a way to keep the Pdata objects from evicting precious objects; ideally, Pdata instances would never be added to the cache at all. I worked a bit on a spike in which the Pdata iterator part would

Re: [Zope] A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-20 Thread Marco Bizzarri
On Sat, Sep 20, 2008 at 8:21 AM, Dieter Maurer [EMAIL PROTECTED] wrote: Marco Bizzarri wrote at 2008-9-19 09:23 +0200: ... I assume therefore that the ZPsycopgDA object has been ghostified, during the transaction. But this assumption is not supported by any evidence. In particular, it is not

Re: [Zope] [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-20 Thread Marco Bizzarri
On Sat, Sep 20, 2008 at 8:24 AM, Dieter Maurer [EMAIL PROTECTED] wrote: Tres Seaver wrote at 2008-9-19 09:33 -0400: ... There is a special 'STICKY' state which prevents ghostifying, but it can't be set from Python code. You could, however, set '_p_changed' on the connection at the beginning of

Re: [Zope] zope3, browser:addMenuItem, ZCML factory = ForbiddenAttribute: ('__call__', ...)

2008-09-20 Thread KLEIN Stéphane
Le Fri, 19 Sep 2008 23:30:21 +, KLEIN Stéphane a écrit : Now, I've some comment and question about it : * I think this tip isn't developer friendly, what is the good method ? * Philipp von Weitershausen's book (Web Component Development with Zope 3) give first version of my example