summaryrefslogtreecommitdiff
path: root/reconfigure/items/util.py
diff options
context:
space:
mode:
authorAndrew Shadura <andrew@shadura.me>2015-08-20 15:58:31 +0200
committerAndrew Shadura <andrew@shadura.me>2015-08-20 15:58:31 +0200
commit52702d36437649ace8a54d49d4d4292184a528d6 (patch)
treed674dfbcaba50712618f6ae3cd168cce53adb13c /reconfigure/items/util.py
parentfec1da7e6ea8a3b3b03befa4ff8dd31d539f163d (diff)
Imported Upstream version 0.1.59+git20140824
Diffstat (limited to 'reconfigure/items/util.py')
-rw-r--r--reconfigure/items/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/reconfigure/items/util.py b/reconfigure/items/util.py
index adb0902..94f8b0e 100644
--- a/reconfigure/items/util.py
+++ b/reconfigure/items/util.py
@@ -1,4 +1,6 @@
yn_getter = lambda x: x == 'yes'
yn_setter = lambda x: 'yes' if x else 'no'
+tf_getter = lambda x: x == 'true'
+tf_setter = lambda x: 'true' if x else 'false'
onezero_getter = lambda x: x == '1'
onezero_setter = lambda x: '1' if x else '0'