From 0a58972217b1d1795ccea6edccb8fd11ce182da9 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Fri, 4 Oct 2024 16:18:53 +0200 Subject: [PATCH 1/2] Customize @download view to allow downloading miniature images with their original filename and not with miniature as filename --- CHANGES.rst | 3 ++- src/redturtle/volto/browser/configure.zcml | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index f27097a..7379c8e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 5.5.6 (unreleased) ------------------ -- Nothing changed yet. +- Customize @download view to allow downloading miniature images with their original filename and not with miniature as filename. + [cekk] 5.5.5 (2024-09-23) diff --git a/src/redturtle/volto/browser/configure.zcml b/src/redturtle/volto/browser/configure.zcml index 126261b..2aa1f35 100644 --- a/src/redturtle/volto/browser/configure.zcml +++ b/src/redturtle/volto/browser/configure.zcml @@ -80,4 +80,14 @@ permission="zope2.View" layer="redturtle.volto.interfaces.IRedturtleVoltoLayer" /> + + + + From 7624dfec7ff1093650585b8ee96e605555207cf7 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Fri, 4 Oct 2024 16:27:55 +0200 Subject: [PATCH 2/2] zpretty and missing file --- src/redturtle/volto/browser/configure.zcml | 2 +- src/redturtle/volto/browser/download.py | 34 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 src/redturtle/volto/browser/download.py diff --git a/src/redturtle/volto/browser/configure.zcml b/src/redturtle/volto/browser/configure.zcml index 2aa1f35..80d99f0 100644 --- a/src/redturtle/volto/browser/configure.zcml +++ b/src/redturtle/volto/browser/configure.zcml @@ -80,7 +80,7 @@ permission="zope2.View" layer="redturtle.volto.interfaces.IRedturtleVoltoLayer" /> - +