# HG changeset patch # User Goffi # Date 1506853283 -7200 # Node ID 9878635586f3cbeed83e8b1ef445d339fcbabd8d # Parent c7a7e650ac2f0a9fc4d296acaf34f6498b381798 template (xmlui): added values property to be able to use always values even when there is only one value diff -r c7a7e650ac2f -r 9878635586f3 src/tools/common/template_xmlui.py --- a/src/tools/common/template_xmlui.py Sun Oct 01 12:21:23 2017 +0200 +++ b/src/tools/common/template_xmlui.py Sun Oct 01 12:21:23 2017 +0200 @@ -49,6 +49,10 @@ super(ValueWidget, self).__init__(xmlui_parent) self.value = value + @property + def values(self): + return [self.value] + class InputWidget(ValueWidget):