Commit 8872357c authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

add code list in product page

parent ebb3b8c2
......@@ -19,3 +19,15 @@ from tracker import *
from pipeline import *
from task import *
from environment import *
__version__='ebb3b8c227a1cd5c28490e7d4ec3e1700b2a8c29'
__version__='ebb3b8c227a1cd5c28490e7d4ec3e1700b2a8c29'
__version__='ebb3b8c227a1cd5c28490e7d4ec3e1700b2a8c29'
__version__='ebb3b8c227a1cd5c28490e7d4ec3e1700b2a8c29'
__version__='ebb3b8c227a1cd5c28490e7d4ec3e1700b2a8c29'
__version__='ebb3b8c227a1cd5c28490e7d4ec3e1700b2a8c29'
......@@ -24,6 +24,7 @@ import cherrypy
import auth
from pipelet.web import TreeView
class PBView(TreeView):
""" A pipeline Web interface dedicated to Polarbear experiment
......@@ -143,6 +144,7 @@ class PBView(TreeView):
directory = r.replace("../",'')
html = self.pipedir(segid=segid, directory=directory)
# elif folder =="None" and mjd != "None":
# with conn:
# l = conn.execute('select seg_id,curr_dir from segments where seg=?',("unpack_obs_stimulator",)).fetchall()
......
......@@ -471,8 +471,9 @@ class TreeView:
datlist.append(filename)
except IndexError:
datlist.append(filename)
biglist = [sorted(loglist), sorted(datlist), sorted(imglist)]
name = ['LOGS', 'DATA', 'FIGURES']
codelist=glob(os.path.join(directory,"../../*.*"))
biglist = [sorted(loglist), sorted(datlist), sorted(imglist), sorted(codelist)]
name = ['LOGS', 'DATA', 'FIGURES', 'CODE']
for L in biglist:
if L:
html += '<span class="text"><small>%s</small></span>'%name[biglist.index(L)]
......
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