treeview Module

class pipelet.treeview.TreeView(db_file, name)[source]

A minimalist pipeline Web interface.

A pipeline Web interface allows to browse all instances of a given pipeline. The informations about the pipeline are retrieve from its data base file. Pipelines are printed through a tree view with links to all segments and products.

addtag(segid, tag)[source]

Add new tag to the database

check_path(segid, path)[source]

Chroot the path to the segid currdir.

code(segid=None)[source]

Segment’s files index.

Print the content of a segment directory (code files, parameters file, ...)

del_lst_prod(segid, taskid)[source]

Delete recursively a list of products. Delete products directories of a given task id. The list of task id is ‘-‘ separated

del_lst_seg(seglist)[source]

Delete a pipeline instance.

Delete all segments and products directories of a given pipeline instance. The list of pipe id is ‘-‘ separated

delete_log(logdir)[source]

Delete the content of the log directory.

deltag(tag)[source]

Delete tag from the database

download(segid=None, filepath=None, download=None)[source]

Download a file.

Text files and pickle are printed directly.

exposed = True
filter(tag=None, date=None, seg=None, recursive='True')[source]

Print the pipeline instances matching arguments.

If many parameters are set, the selection corresponds to the union. Tag are set for leafs only. Upstream parents are added to the list if recursive is set to True.

filter_panel(l)[source]

Return an html string containing the filter panel

forbidden_path = <_sre.SRE_Pattern object at 0x360d500>
get_html_refresh(refresh=True)[source]
index(highlight=None, thumbnail=None)[source]

Pipeline instances tree view

Print the pipeline instances trough a tree view.

log(logdir)[source]

Print the content of the log directory.

pipedir(segid=None, directory=None)[source]

Print the content of a directory.

directory: string pipeline directory path.

product(segid=None, status=None)[source]

Products index.

Print the content of the product directory. status in (‘done’, ‘queued’, ‘running’, ‘failed’)

serve_log(filename)[source]

Print the content of the log file.

serve_pickle(filename)[source]

Expose pickle file content

thumbnail_panel(segid)[source]

Return an html string containing the thumbnail panel

treeview_panel(l, tcounts, index, sindex, highlight)[source]

Return an html string containing the tree view

Table Of Contents

This Page