Boolean¶
-
class
Cauldron.types.
Boolean
[source] [edit on github]¶ Bases:
Cauldron.types.Basic
A boolean-valued keyword.
Attributes Summary
KTL_TYPE
mapping
Methods Summary
prewrite
(value)Check value before writing. translate
(value)Translate the value. Attributes Documentation
-
KTL_TYPE
= 'boolean'¶
-
mapping
= {False: '0', True: '1', 'false': '0', 'yes': '1', 'true': '1', 'on': '1', 'off': '0', 'no': '0', 'f': '0', '1': '1', '0': '0', 't': '1'}¶
Methods Documentation
-
prewrite
(value)[source] [edit on github]¶ Check value before writing.
-
translate
(value)[source] [edit on github]¶ Translate the value.
-