![]() |
ATLAS Offline Software
|
Classes | |
| class | GlobalConfiguration |
| class | HelloWorld |
| class | htmlTable |
| class | WebPage |
| class | WebPageConfigurationError |
Functions | |
| sep (s) | |
| htmlDiv (id, contents='', attr='', keepEmptyDiv=True) | |
| htmlText (text, attr='', escapeText=False) | |
| htmlPre (text, attr='', escapeText=False) | |
| htmlPara (text='', attr='', escapeText=False) | |
| htmlLink (text, link, attr='', escapeText=False) | |
| htmlList (contents, attr='', listType='ul') | |
| htmlLI (text, attr='', escapeText=False) | |
| htmlFoldingSection (header, content, isClosed=True, headerClass='section-header', contentClass='section-content') | |
| htmlForm (contents, action='', method='post', attr='') | |
| htmlLabel (labelText, parName, attr='') | |
| htmlSelect (labelText, parName, args, choiceList, hint=None, descriptionSeparator='::', labelAttr='', attr='') | |
| htmlCheckbox (labelText, parName, args, labelAttr='', attr='') | |
| htmlTextInput (labelText, parName, args, size=None, maxLength=None, labelAttr='', attr='') | |
| htmlSubmit (text, parName, attr='', onlyOnce=False) | |
Variables | |
| str | __author__ = 'Juerg Beringer' |
| str | __version__ = 'WebPage.py atlas/athena' |
| str | startPage |
| str | endPage |
This module provides a simple framework for generating CSS-based dynamic web pages with a typical layout consisting of a header, navigation bar, content area and a footer. It is compatible with different web servers using e.g. CGI, mod_python, or CherryPy.
| WebPage.htmlCheckbox | ( | labelText, | |
| parName, | |||
| args, | |||
| labelAttr = '', | |||
| attr = '' ) |
Make a checkbox (including label with text).
Definition at line 206 of file WebPage.py.
| WebPage.htmlDiv | ( | id, | |
| contents = '', | |||
| attr = '', | |||
| keepEmptyDiv = True ) |
Make a named div element containing contents. If contents is empty, an empty string is returned, unless keepEmtpyDiv is set True.
Definition at line 46 of file WebPage.py.
| WebPage.htmlFoldingSection | ( | header, | |
| content, | |||
| isClosed = True, | |||
| headerClass = 'section-header', | |||
| contentClass = 'section-content' ) |
Generate the html for a folding section using the toggleSection JavaScript utility from WebPageUtils.js and CSS classes section-closed, section-open, and hidden.
Definition at line 154 of file WebPage.py.
| WebPage.htmlForm | ( | contents, | |
| action = '', | |||
| method = 'post', | |||
| attr = '' ) |
Definition at line 168 of file WebPage.py.
| WebPage.htmlLabel | ( | labelText, | |
| parName, | |||
| attr = '' ) |
Make a label for parName. If labelText is None, an empty string is returned.
Definition at line 175 of file WebPage.py.
| WebPage.htmlLI | ( | text, | |
| attr = '', | |||
| escapeText = False ) |
Make a list item. Special HTML characters in the text are properly replaced (using escape from cgi) if escapeText is set True.
Definition at line 85 of file WebPage.py.
| WebPage.htmlLink | ( | text, | |
| link, | |||
| attr = '', | |||
| escapeText = False ) |
Definition at line 77 of file WebPage.py.
| WebPage.htmlList | ( | contents, | |
| attr = '', | |||
| listType = 'ul' ) |
Enclose list contents (a string with one or more list items) with the proper list tag. The type of the list is given by listType.
Definition at line 80 of file WebPage.py.
| WebPage.htmlPara | ( | text = '', | |
| attr = '', | |||
| escapeText = False ) |
Make a paragraph.
Definition at line 70 of file WebPage.py.
| WebPage.htmlPre | ( | text, | |
| attr = '', | |||
| escapeText = False ) |
Make a preformatted text section. Special HTML characters in the text are properly replaced (using escape from cgi) if escapeText is set True.
Definition at line 64 of file WebPage.py.
| WebPage.htmlSelect | ( | labelText, | |
| parName, | |||
| args, | |||
| choiceList, | |||
| hint = None, | |||
| descriptionSeparator = '::', | |||
| labelAttr = '', | |||
| attr = '' ) |
Make a select statement (including label with text).
Definition at line 183 of file WebPage.py.
| WebPage.htmlSubmit | ( | text, | |
| parName, | |||
| attr = '', | |||
| onlyOnce = False ) |
Make a submit button. If onlyOnce is true, the button can only be clicked once in order to prevent multiple clicking of the submit button.
Definition at line 227 of file WebPage.py.
| WebPage.htmlText | ( | text, | |
| attr = '', | |||
| escapeText = False ) |
Make a text consisting of an unnamed div. Special HTML characters in the text are properly replaced (using escape from cgi) if escapeText is set True.
Definition at line 58 of file WebPage.py.
| WebPage.htmlTextInput | ( | labelText, | |
| parName, | |||
| args, | |||
| size = None, | |||
| maxLength = None, | |||
| labelAttr = '', | |||
| attr = '' ) |
Make a text input area (including label with text). Special HTML characters in any default text are properly replaced.
Definition at line 213 of file WebPage.py.
| WebPage.sep | ( | s | ) |
Add separator to string s unless s is empty.
Definition at line 42 of file WebPage.py.
|
private |
Definition at line 9 of file WebPage.py.
|
private |
Definition at line 10 of file WebPage.py.
| str WebPage.endPage |
Definition at line 33 of file WebPage.py.
| str WebPage.startPage |
Definition at line 20 of file WebPage.py.