summaryrefslogtreecommitdiff
path: root/reconfigure/items/util.py
blob: 94f8b0e8b257b28eff87fa2727e91666a5a7c16a (plain)
1
2
3
4
5
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'