[ZCM] [ZC] 305/ 2 Reject "PersistentMapping and _container attribute in 2.5"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Thu, 21 Mar 2002 11:17:55 -0500


Issue #305 Update (Reject) "PersistentMapping and _container attribute in 2.5"
 Status Rejected, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/305

==============================================================
= Reject - Entry #2 by mcdonc on Mar 21, 2002 11:17 am

 Status: Pending => Rejected

The Exam product depends on an implementation detail of the PersistentMapping class that it should not depend upon.  The implementation changed between 2.4X and 2.5X, this is why it's breaking.  I'd suggest contacting the Exam product maintainer with either a request to rewrite the code so it's not dependent on the older implementation or submit a patch.
________________________________________
= Request - Entry #1 by Anonymous User on Mar 21, 2002 1:17 am

When I upgrade from Zope 2.4.3 to 2.5.0 the Exam product stopped working. The reported problem was an Attribute Error. This is the line in the source that is causing problems<br>
> sub = self._submissions[userid]._container.copy
the _submissions object is defined elsewhere as:
> _submissions = PersistentMapping
Now, this worked absolutely fine in Zope 2.4.2, 2.4.3 etc
If I try and replace _container with .data, I end up with the sub variable not being in the namespace.

==============================================================