Commit 4ca1f5ee authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

debug new web interface

parent a055502d
......@@ -25,6 +25,7 @@ import auth
from pipelet.web import TreeView
from copy import copy
class PBView(TreeView):
""" A pipeline Web interface dedicated to Polarbear experiment
......
......@@ -444,7 +444,7 @@ class TreeView:
final_list= final_list+_get_children_task(self.db_file,taskid)
## empty the list
self._deltask(self.db_file, final_list)
_deltask(self.db_file, final_list)
raise cherrypy.HTTPRedirect('/'+self.name+'/',303)
@cherrypy.expose
......@@ -503,7 +503,7 @@ class TreeView:
""" Print the content of the log directory.
"""
directory = logdir
html = get_html_refresh(refresh=False) + '<a class="icon home" href="../%s/"><small>Home</small></a>'%(self.name)
html = self.get_html_refresh(refresh=False) + '<a class="icon home" href="../%s/"><small>Home</small></a>'%(self.name)
html += '<h1> Content of %s </h1> <div class="list"><a class="icon delete" href="delete_log?logdir=%s"><small>Delete logs</small></a><ul>'%(directory,logdir)
for filename in sorted(glob(os.path.join(directory,'*')), reverse=True):
absPath = os.path.abspath(filename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment