changeset 2101:cba3323710f0

Primitivus (xmlui): use constants for BOOL_TRUE and BOOL_FALSE value
author Goffi <goffi@goffi.org>
date Tue, 20 Dec 2016 21:06:42 +0100
parents fbeeba721954
children 071423b3a413
files frontends/src/primitivus/xmlui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/primitivus/xmlui.py	Mon Dec 19 23:49:37 2016 +0100
+++ b/frontends/src/primitivus/xmlui.py	Tue Dec 20 21:06:42 2016 +0100
@@ -157,7 +157,7 @@
         self.set_state(value == "true")
 
     def _xmluiGetValue(self):
-        return "true" if self.get_state() else "false"
+        return C.BOOL_TRUE if self.get_state() else C.BOOL_FALSE
 
 
 class PrimitivusIntWidget(xmlui.IntWidget, sat_widgets.AdvancedEdit, PrimitivusEvents):