@staticmethod
    def booltooffon(value):
        if value == "1" or value == "true" or value == "on":
            return "on"
        else:
            return "off"
Convenience helper turns bool into on (True) or off (False) string.
dataset/ETHPy150Open coreemu/core/daemon/core/conf.py/Configurable.booltooffon