[Zope-CMF] Patch for more forward-compatible APB

Tres Seaver tseaver@zope.com
18 Apr 2003 12:04:15 -0400


On Fri, 2003-04-18 at 11:46, Sidnei da Silva wrote:

> I was testing Plone1_0 with CMF-HEAD after the APB branch merge, and
> found a few issues. Of course it isnt required to make it work with
> CMF-HEAD, but It seems to me that the changes needed to do it are
> harmless.
> 
> My patch makes the ActionInformation behave like a dict, which may
> benefit also other products that expect actions from the TypesTool to
> be a dict. 

I don't mind the parts of the patch which surface the "readable" bits of
a dict;  however, I don't think I want to encourage anybody to assume
that modifying the object through '__setitem__' / 'update' is
supported.  Does Plone actually need that, or were you just being
thorough?

> In the way, I also added a few __traceback_info__ to make debugging
> easier.

Yep, no problem there.

BTW, I vastly prefer to read unified diff.  My ~/.cvsrc looks like:

  $ cat .cvsrc
  -z7
  diff -u

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com