From 4a49e803c561f62371c0f2e24d8f94c208f23960 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Thu, 20 Mar 2025 11:47:28 +0100 Subject: [PATCH] Work around TypeError: unhashable type: 'list' on `images-test` view. Fixes https://github.com/plone/plone.namedfile/issues/173 --- news/173.bugfix | 3 +++ plone/namedfile/test.pt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 news/173.bugfix diff --git a/news/173.bugfix b/news/173.bugfix new file mode 100644 index 0000000..b27c767 --- /dev/null +++ b/news/173.bugfix @@ -0,0 +1,3 @@ +Work around TypeError: unhashable type: 'list' on `images-test` view. +[maurits] + diff --git a/plone/namedfile/test.pt b/plone/namedfile/test.pt index 88a368f..5568f1d 100644 --- a/plone/namedfile/test.pt +++ b/plone/namedfile/test.pt @@ -229,7 +229,7 @@

- ${python:item[0]}: ${python:item[1]} + ${python:item[0]}: ${python:tuple(item[1]) if isinstance(item[1], list) else item[1]}