runtime/PlcStatus.py
author Edouard Tisserant
Mon, 31 Aug 2020 13:54:08 +0200
changeset 2706 65f35ac97cd6
parent 2416 1ca207782dde
permissions -rw-r--r--
Attempt to workaround problem reported about empty plc.xml after unrelated crash. Now, if etree model is corrupted in a way tostring() would generate an empty string, exception prevents saving.
# -*- coding: utf-8 -*-

# See COPYING.Runtime file for copyrights details.


def _(x):
    """No translation"""
    return x


Broken = _("Broken")
Started = _("Started")
Stopped = _("Stopped")
Disconnected = _("Disconnected")
Empty = _("Empty")