From fa1680a119e8633aba0b9b4c519e7edfbbbaeaf9 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 1 Oct 2017 12:21:23 +0200 Subject: [PATCH] template (xmlui): added values property to be able to use always values even when there is only one value --- src/tools/common/template_xmlui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/common/template_xmlui.py b/src/tools/common/template_xmlui.py index b23034ff..185e0532 100644 --- a/src/tools/common/template_xmlui.py +++ b/src/tools/common/template_xmlui.py @@ -49,6 +49,10 @@ class ValueWidget(Widget): super(ValueWidget, self).__init__(xmlui_parent) self.value = value + @property + def values(self): + return [self.value] + class InputWidget(ValueWidget):