[ZCM] [ZC] 2137/ 1 Request "ZopeVersionControl bug"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Fri Jun 23 14:19:17 EDT 2006


Issue #2137 Update (Request) "ZopeVersionControl bug"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/2137

==============================================================
= Request - Entry #1 by miwa on Jun 23, 2006 2:19 pm

There is a bug in ZopeVersionControl:

In

class StandardNonVersionedDataAdapter:

    ...

    def getNonVersionedData(self):
        data = {}
        for attr in self.attrs:
            if hasattr(self.obj, attr):
                data[attr] = aq_base(getattr(aq_base(self.obj), attr))
        return data

if hasattr(self.obj, attr)
needs to be replaced by
if hasattr(aq_base(self.obj), attr).

otherwise the next line will fail if attr can be acquired for obj, but does not exist for it.


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



More information about the Zope-Collector-Monitor mailing list