WebInterface: better wording for wiping PLC content: "Repair" svghmi
authorEdouard Tisserant
Mon, 21 Dec 2020 11:10:27 +0100
branchsvghmi
changeset 3095 dbb9d1898874
parent 3094 3e184f1e1012
child 3096 fc5a0b1ece10
WebInterface: better wording for wiping PLC content: "Repair"
runtime/NevowServer.py
--- a/runtime/NevowServer.py	Fri Dec 18 15:52:58 2020 +0100
+++ b/runtime/NevowServer.py	Mon Dec 21 11:10:27 2020 +0100
@@ -219,16 +219,16 @@
                                            action=_("Send"))
 
     # pylint: disable=no-self-argument
-    def restartOrResetPLC(
+    def restartOrRepairPLC(
             ctx=annotate.Context(),
-            action=annotate.Choice(["Restart", "Reset"],
+            action=annotate.Choice(["Restart", "Repair"],
                                   required=True,
                                   label=_("Action"))):
         pass
 
-    restartOrResetPLC = annotate.autocallable(restartOrResetPLC,
+    restartOrRepairPLC = annotate.autocallable(restartOrRepairPLC,
                                            label=_(
-                                               "Restart or Reset"),
+                                               "Restart or Repair"),
                                            action=_("Do"))
 
 customSettingsURLs = {
@@ -300,8 +300,8 @@
         GetPLCObjectSingleton().LogMessage(
             level, "Web form log message: " + message)
 
-    def restartOrResetPLC(self, action, **kwargs):
-        if(action == "Reset"):
+    def restartOrRepairPLC(self, action, **kwargs):
+        if(action == "Repair"):
             GetPLCObjectSingleton().RepairPLC()
         else:
             MainWorker.quit()