From a42fd38642e0f3c864386937cb57506a77b37886 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Sat, 19 Nov 2011 10:11:46 +0100 Subject: [PATCH] fix bug in ExternalSourceInfo implementation --- integrator/source.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integrator/source.py b/integrator/source.py index 788e685..8c0773f 100644 --- a/integrator/source.py +++ b/integrator/source.py @@ -46,11 +46,11 @@ class ExternalSourceInfo(object): def getExternalIdentifier(self): # first try to find adapter on adapted concept or resource - adapted = adapted(self.context) - if adapted != self.context: - adaptedSourceInfo = IExternalSourceInfo(adapted, None) + adobj = adapted(self.context) + if adobj != self.context: + adaptedSourceInfo = IExternalSourceInfo(adobj, None) if adaptedSourceInfo is not None: - return adaptedSourceInfo.getExternalIdentifier() + return adaptedSourceInfo.externalIdentifier # otherweise use stored external identifier return self.getSourceInfo().get('externalIdentifier') def setExternalIdentifier(self, value):