globalInitialize() starts a timer and every 10 minutes requests
the motd again and sets the string in the dom.
Signed-off-by: Travis Miller <raphtee@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3040 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index 5ce6f90..a9e7ca3 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -633,6 +633,13 @@
return data
+def get_motd():
+ """\
+ Returns the message of the day as a string.
+ """
+ return rpc_utils.get_motd()
+
+
def get_static_data():
"""\
Returns a dictionary containing a bunch of data that shouldn't change