Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit d0351a7a authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

Feature #729 interface ok missing core routines

parent e47bd583
......@@ -71,6 +71,18 @@ function del_tag() {
// delete products
function del_prod(segid) {
lst = document.getElementByName('checkbox_p') ;
var url="del_lst_prod?segid="+segid+"&taskid=";
for (var i=0;i<lst.length;i++){
url = url+lst[i].id+";";
// filter pipelines
function filter(){
......@@ -311,12 +311,13 @@ class Web:
seg, currdir = conn.execute(
'select seg, curr_dir from segments where seg_id = ?'
l = conn.execute('select str_input from tasks where seg_id=? and status=?',(segid, status)).fetchall()
l = conn.execute('select str_input, task_id from tasks where seg_id=? and status=?',(segid, status)).fetchall()
html = html_tmp + '<h1> Data products for %s tasks in segment %s </h1>' % (status, seg)
html += '<div class="list"><p>Directory : %s</p> %d <span class="%s">%s</span> tasks <ul> '%( currdir, len(l), status, status)
html += '<a href="/%s/">Back</a><div class="list"><p>Directory : %s</p> %d <span class="%s">%s</span> tasks<br><br> '%(, currdir,len(l), status, status)
html += '<a class="icon delete" href="javascript:del_prod(%d)"><small>Delete</small></a><ul>'%(int(segid))
for e in l:
html += '<li><a href="pipedir?segid=%s&directory=%s"> %s </a></li>'%(segid,os.path.relpath(e[0],start=currdir),e[0])
html += '<li><a href="pipedir?segid=%s&directory=%s"> %s </a><INPUT type="checkbox" name="checkbox_p" id="%d"></li>'%(segid,os.path.relpath(e[0],start=currdir),e[0],e[1])
html += '</ul></div></body></html>'
return html
......@@ -459,6 +460,33 @@ class Web:
raise cherrypy.HTTPRedirect('/''/',303)
def del_lst_prod(self, segid, taskid):
""" Delete recursively a list of products.
Delete products directories of a given task id.
segid: integer
taskid: string, list of task id ';' separated
cherrypy.log.error_log.warning('called ONCE')
tasklist = tasklist.split(";")
## build list including dependencies
final_list = []
for taskid in tasklist:
if taskid:
#final_list= final_list+self._get_children_task(segid, taskid)
## empty the list
raise cherrypy.HTTPRedirect('/''/',303)
def pipedir(self, segid=None, directory=None):
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