[Pkg-zope-developers] Re: PersistentMapping not available in zope2.8

Derrick Hudson dman at dman13.dyndns.org
Wed Oct 5 13:30:40 UTC 2005


On Wed, Oct 05, 2005 at 03:16:59PM +0200, Jonas Meurer wrote:
| hello,
| 
| The zope product TinyTablePlus obviously depends on the PersistentMapping
| python module to work correctly.
| 
| Unfortunately zope2.8 doesn't provide this module any longer.
| 
| So my question is, should i restrict zope-tinytableplus to zope2.6 and
| zope2.7, or is that a bug in the zope2.8 packages?
 
You'll want to verify this, but I think PersistentMapping no longer
exists.

Older versions of ZODB used ExtensionClass to address many of the
issues resulting from the dfferences between types and classes.  As I
recall, PersistentMapping existed to provide an object that behaved
like a dict but would be persisted by reference (instead of by value)
in the ZODB.

Python (as of 2.2 or 2.3?) unified the type system so that classes can
extend types and eliminated the problems surrounding them.  Newer
versions of ZODB no longer use ExtensionClass but use the built-in
<object> type instead.  With these changes, the built-in <dict> can
now be persisted as intended, PersistentMapping is no longer needed.

Zope 2.7 uses the older ZODB.  Zope 2.8 and 3.0 use the newer ZODB.
It looks to me that including the tests may be a mistake in the newer
zopes (and in schoolbell).

If I were you, I would double-check with TinyTablePlus upstream and
see what versions of zope they intended and tested that software for.
If they didn't test with zope 2.8 and 3.x then I suspect it needs to
be updated to work with them.  To fix this problem, just change all
use of PersistentMapping to use the built-in dict instead and I expect
it will work.

HTH,
-D

PS.  thanks for providing that apt-file listing

-- 
>Linux is not user-friendly.
It -is- user-friendly.  It is not ignorant-friendly and idiot-friendly.
(Seen somewhere on the net.)
 
www: http://dman13.dyndns.org/~dman/            jabber: dman at dman13.dyndns.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-zope-developers/attachments/20051005/8d4cc691/attachment.pgp


More information about the Pkg-zope-developers mailing list