Use renamed MediaFileView instead of ImageView
authorThierry Florac <thierry.florac@onf.fr>
Tue, 08 Sep 2015 17:19:46 +0200
changeset 79 ed37e7df3d47
parent 78 4cc2e7381e28
child 80 181b3a0ee15a
Use renamed MediaFileView instead of ImageView
src/pyams_skin/configuration.py
--- a/src/pyams_skin/configuration.py	Tue Aug 25 09:46:21 2015 +0200
+++ b/src/pyams_skin/configuration.py	Tue Sep 08 17:19:46 2015 +0200
@@ -27,7 +27,7 @@
 # import packages
 from persistent import Persistent
 from pyams_file.property import FileProperty
-from pyams_file.views.file import ImageView
+from pyams_file.views.file import MediaFileView
 from pyams_utils.adapter import ContextRequestViewAdapter, ContextAdapter, adapter_config
 from pyams_utils.request import check_request
 from pyams_utils.traversing import get_parent
@@ -140,5 +140,5 @@
     if configuration.icon is not None:
         request = request.copy()
         request.context = configuration.icon
-        return ImageView(request)
+        return MediaFileView(request)
     return HTTPNotFound()