WebInterface: better wording for wiping PLC content: "Repair"
authorEdouard Tisserant
Mon, 21 Dec 2020 11:10:27 +0100
changeset 2701 f4dac054cfa3
parent 2700 144b149cded4
child 2702 f0a70f0246da
WebInterface: better wording for wiping PLC content: "Repair"
runtime/NevowServer.py
--- a/runtime/NevowServer.py	Fri Dec 18 11:50:28 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()