diff --git a/integrator/collection.py b/integrator/collection.py index 880dcda..51fae5e 100644 --- a/integrator/collection.py +++ b/integrator/collection.py @@ -59,9 +59,11 @@ class ExternalCollectionAdapter(AdapterBase): implements(IExternalCollection) adapts(IConcept) - _adapterAttributes = ('context', '__parent__', 'exclude') + _adapterAttributes = ('context', '__parent__', 'exclude', 'newResources') _contextAttributes = list(IExternalCollection) + list(IConcept) + newResources = None + def getExclude(self): return getattr(self.context, '_exclude', None) or [] def setExclude(self, value): @@ -87,8 +89,8 @@ class ExternalCollectionAdapter(AdapterBase): else: new.append(addr) if new: - newResources = provider.createExtFileObjects(self, new) - for r in newResources: + self.newResources = provider.createExtFileObjects(self, new) + for r in self.newResources: self.context.assignResource(r) for addr in old: if addr not in oldFound: