4 usage: %(progname)s [args] 10 import os, sys, string, time, getopt, re
14 import neo_cgi, neo_util, neo_cs
16 from pyclearsilver
import CSPage
17 from pyclearsilver
import odb
30 webutil.grabTopics(hdf, [])
34 warn(
"calling robot reset")
35 proc = subprocess.Popen([
"sudo",
"robot",
"reset",
"--force",
"-u", self.
username], stdout=subprocess.PIPE)
36 out, err = proc.communicate()
43 warn(
"starting webui")
45 self.
redirectUri(config.gBaseURL +
"webui/reset.py")
49 warn(
"calling ajax robot reset")
50 proc = subprocess.Popen([
"sudo",
"robot",
"reset",
"--force",
"-u", self.
username], stdout=subprocess.PIPE)
51 out, err = proc.communicate()
58 warn(
"starting webui")
60 hdf.setValue(
"CGI.result",
"OK")
62 hdf.setValue(
"Content",
"ajax_result.cs")
66 return MyPage(context, pagename=
"reset", nologin=
False)
69 context = CSPage.Context()
72 if __name__ ==
"__main__":
def redirectUri(self, redirectTo)
def Action_AjaxReset(self, hdf)
def Action_DoReset(self, hdf)