Add code to perform a translation on the status field to provide a more informative string for the UI.
Signed-off-by: Travis Miller <raphtee@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1863 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index dba79f4..e5f6253 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -506,4 +506,13 @@
result['job_statuses'] = sorted(models.Job.Status.names)
result['job_timeout_default'] = global_config.global_config.get_config_value(
'AUTOTEST_WEB', 'job_timeout_default')
+
+ result['status_dictionary'] = {"Aborted": "Aborted",
+ "Verifying": "Verifying Host",
+ "Pending": "Waiting on other hosts",
+ "Running": "Running autoserv",
+ "Completed": "Autoserv completed",
+ "Failed": "Failed to complete",
+ "Aborting": "Abort in progress",
+ "Queued": "Queued"}
return result