Mercurial > libervia-backend
diff frontends/src/primitivus/xmlui.py @ 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 | 2daf7b4c6756 |
children | 5defafc8ede6 |
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):