web Module

class pipelet.web.MyApp(domain, domaindir, script_name='', config=None, pipeview=<class pipelet.treeview.TreeView at 0x36257a0>)[source]

Bases: cherrypy._cptree.Application

Pipelet web interface application.

class pipelet.web.PipeIndex[source]

A pipeline index Web interface.

A pipeline index Web interface prints the lists of available pipelines found in a given path.

get_config(config_file)[source]

Get the list of pipelines.

html_tmp = '\n <html>\n <head>\n <SCRIPT SRC="static/mktree.js" LANGUAGE="JavaScript"></SCRIPT>\n <SCRIPT SRC="static/cook.js" LANGUAGE="JavaScript"></SCRIPT>\n <SCRIPT SRC="static/tag.js" LANGUAGE="JavaScript"></SCRIPT>\n <LINK REL="stylesheet" HREF="static/mktree.css"> \n </head><body>\n '
index()[source]

Pipeline index.

which_sqlfile(path_info)[source]

Return data base filename path_info read from configuration file .pipelet.

which_view(config_file, pipe)[source]
pipelet.web.main()[source]
pipelet.web.start(config, fastcgi=False)[source]

Start the web server in daemon mode.

Store the PID in the file specified in config.

pipelet.web.stop(config)[source]

Stop the web server by sending the TERM signal to the daemon process.

Look for the PID in the file specified in config.

pipelet.web.update_config(pipename, pipepath, config_file, delete=False, view=None)[source]

Add a new Pipeline entry to the config file.

If the config file does not exist, create a new one. if delete is True remove pipe from list

Simple authentication for pipeweb.

pipelet.auth.acl_setup(db_file)[source]

Set user/passwd table in pipe database.

pipelet.auth.add_user(db_file, user, passwd, access_level=1)[source]

Add user entry to data base.

pipelet.auth.ask_auth(auth_type)[source]
pipelet.auth.check_access(auth_type, access_level)[source]

Check whether user has sufficient access rights.

Depending on the configuration passed through auth_type: - grant access without verification - check the access level of an otherwise authenticated user - perform Basic http authentication and check access rights - perform Digest http authentication and check access rights

auth_type is either ‘None’, ‘ACL’, ‘Basic’, ‘Digest’

pipelet.auth.del_user(db_file, user)[source]

Delete user entry from data base.

pipelet.auth.get_credentials(access_level=1)[source]

Get users/passwd from pipe data base. access_level is 1 for read-only or 2 for read-write access. return dictionnary of user and passwd

pipelet.auth.read_access(auth_type='Digest')[source]

Require read only access on a web page

pipelet.auth.write_access(auth_type='Digest')[source]

Require write accessto a web page

Table Of Contents

This Page