diff -r d959b670cbe1 -r b21d74ececb1 src/pyams_content/component/extfile/__init__.py --- a/src/pyams_content/component/extfile/__init__.py Tue Feb 06 11:39:00 2018 +0100 +++ b/src/pyams_content/component/extfile/__init__.py Tue Feb 06 13:56:35 2018 +0100 @@ -22,7 +22,7 @@ IExtMedia from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE from pyams_content.shared.common.interfaces import IWfSharedContent -from pyams_file.interfaces import IFileInfo, IResponsiveImage, DELETED_FILE +from pyams_file.interfaces import IFileInfo, IImage, IResponsiveImage from pyams_i18n.interfaces import II18n, INegotiator, II18nManager from zope.lifecycleevent.interfaces import IObjectAddedEvent, IObjectModifiedEvent, IObjectRemovedEvent @@ -230,7 +230,7 @@ def data(self, value): self._data = value for data in value.values(): - if (data is not None) and (data is not DELETED_FILE): + if IImage.providedBy(data): alsoProvides(data, IResponsiveImage) register_file_factory('image', ExtImage, _("Image"))