summaryrefslogtreecommitdiff
path: root/tko/retrieve_logs.cgi
diff options
context:
space:
mode:
authorshoward <showard@592f7852-d20e-0410-864c-8624ca9c26a4>2008-09-23 19:15:43 +0000
committershoward <showard@592f7852-d20e-0410-864c-8624ca9c26a4>2008-09-23 19:15:43 +0000
commitd24eec0081c344eae25a6d338e2265e8e98815e1 (patch)
tree1a4b6f66f1e3831bd108833de8334ee66c0857ce /tko/retrieve_logs.cgi
parent8f7307c6ac985213677d9249c6b78a7070cb28a0 (diff)
-added capability to have site-specific urlconfs in TKO Django server
-added ClassFactory and SiteClassFactory to autotest.tko package to allow site-specific modifications to TKO. made some changes to the AFE [Site]ClassFactory files (reducing visibility) -added get_detailed_test_views RPC which includes information about labels and attributes associated with a test -made changes to model_logic.py to make fewer assumptions about models. these were basically bugs in model_logic.py that weren't exposed until i started doing fancier queries on TKO models. -made list_objects capable of accepting a field list -changed JsonRpcProxy to contain base URLs instead of full RPC urls; this way, other components (graphing, jlog) can use them (and i made graphing use this URL, which fixes a bug in the embedded URL generation) -added RealHyperlink widget to common.ui package, representing a plain old hyperlink to another page (as opposed to Hyperlink and SimpleHyperlink, which are intended to be handling by the GWT code). this eases dynamic updates of the link href and allows setting visibility, styles, and all the other good stuff that comes along with using Widgets. git-svn-id: svn://test.kernel.org/autotest/trunk@2191 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/retrieve_logs.cgi')
-rwxr-xr-xtko/retrieve_logs.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/tko/retrieve_logs.cgi b/tko/retrieve_logs.cgi
index 59723a9f..157bf8ae 100755
--- a/tko/retrieve_logs.cgi
+++ b/tko/retrieve_logs.cgi
@@ -20,20 +20,21 @@ try:
retrieve_logs = site_retrieve_logs.retrieve_logs
del site_retrieve_logs
except ImportError:
- def retrieve_logs(autodir, job_path):
+ def retrieve_logs(job_path):
pass
# Get form fields
form = cgi.FieldStorage(keep_blank_values=True)
# Retrieve logs
job_path = form['job'].value[1:]
-keyval = retrieve_logs(autodir, job_path)
+job_path = os.path.join(autodir, job_path)
+keyval = retrieve_logs(job_path)
# Redirect to results page
testname = ''
if 'test' in form:
testname = form['test'].value
- full_path = os.path.join(autodir, job_path, form['test'].value)
+ full_path = os.path.join(job_path, form['test'].value)
if not os.path.exists(full_path):
testname = ''
path = "%s%s" % (form['job'].value, testname)