# HG changeset patch # User Goffi # Date 1482264402 -3600 # Node ID cba3323710f04abb219fde296be4f601e3284bab # Parent fbeeba721954ec10f9433cddb41ee4c44257be0f Primitivus (xmlui): use constants for BOOL_TRUE and BOOL_FALSE value diff -r fbeeba721954 -r cba3323710f0 frontends/src/primitivus/xmlui.py --- 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):