Updated checker attribute
authorThierry Florac <thierry.florac@onf.fr>
Wed, 14 Mar 2018 10:27:27 +0100
changeset 483 b080a23fc8c2
parent 482 d142297eee4b
child 484 ddbb2278250b
Updated checker attribute
src/pyams_content/component/paragraph/pictogram.py
--- a/src/pyams_content/component/paragraph/pictogram.py	Wed Mar 14 10:15:39 2018 +0100
+++ b/src/pyams_content/component/paragraph/pictogram.py	Wed Mar 14 10:27:27 2018 +0100
@@ -206,7 +206,7 @@
                 continue
             for name, checker in sorted(registry.getAdapters((pictogram, ), IContentChecker),
                                         key=lambda x: x[1].weight):
-                output.append('- {0} :'.format(II18n(pictogram).query_attribute('title', request=request)))
+                output.append('- {0} :'.format(II18n(pictogram).query_attribute('label', request=request)))
                 output.append(checker.get_check_output(request))
         return output