From 36ecefbff8bccac22f635c0a9c508e90ba4137f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Wed, 27 Oct 2010 00:33:04 +0200 Subject: [PATCH] Bugfix avec zope-2.12. --- metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metadata.py b/metadata.py index 96a44aa..0b11842 100755 --- a/metadata.py +++ b/metadata.py @@ -24,6 +24,7 @@ $URL: http://svn.luxia.fr/svn/labo/projects/zope/Photo/trunk/metadata.py $ """ from AccessControl import ClassSecurityInfo +from Acquisition import aq_base from Globals import InitializeClass from AccessControl.Permissions import view from ZODB.interfaces import BlobError @@ -168,7 +169,7 @@ class Metadata : root = info['root'] rdfType = info['rdfType'].capitalize() methName = 'getXmp%s' % rdfType - meth = getattr(self.aq_base, methName) + meth = getattr(aq_base(self), methName) return meth(name, root) -- 2.20.1