![]() |
ATLAS Offline Software
|
Public Member Functions | |
| content (self) | |
| pageName (self) | |
| addPage (self, name, page, **attrs) | |
| addLink (self, name, alias, **attrs) | |
| addToPageHeader (self, snippet) | |
| index (self, **args) | |
| configure (self) | |
| configureLinks (self) | |
| override (self) | |
| header (self, **args) | |
| navigation (self, **args) | |
| footer (self, **args) | |
Public Attributes | |
| dict | pageConfig |
| globalConfig = GlobalConfiguration() | |
| bool | isConfigured = False |
Static Public Attributes | |
| exposed | |
Definition at line 423 of file WebPage.py.
|
inherited |
Add a new link to the page tree. Links share page objects with other pages through aliasing. This allows using different links with different queries to the same page as if they were separate pages. For links, highlighting of the current page is disabled (if enabled, all links leading to the same page would be highlighted).
Definition at line 309 of file WebPage.py.
|
inherited |
Add a new web page to the page tree. All pages added via addPage share the same GlobalConfiguration object.
Definition at line 300 of file WebPage.py.
|
inherited |
Add a snippet of code to the page header. Use this e.g. to include JavaScript libraries.
Definition at line 320 of file WebPage.py.
|
inherited |
Final configuration of web application after all data is initialized.
Reimplemented in BeamSpotWebPage.BeamSpotWebPage.
Definition at line 347 of file WebPage.py.
|
inherited |
Based on configuration data, for each web page create two link entries in pageConfig: The first entry has the form url_PAGENAME and contains the complete URL to link to a page. The second entry is named href_PAGENAME and contains style information and a href= prefix with proper quotation marks in addition to the URL. These link entries should be used to generate links in HTML pages with snippets like <a %(href_PAGENAME)s> or <a href="%(url_PAGENAME)>. The link entries can only be generated once all configuration data is available, ie configureLinks must be called from configure and not from __init__.
Definition at line 353 of file WebPage.py.
| WebPage.HelloWorld.content | ( | self | ) |
Generate the page content. Default value comes from self.pageConfig['content'].
Reimplemented from WebPage.WebPage.
Definition at line 424 of file WebPage.py.
|
inherited |
Generate the footer. Default value comes from self.pageConfig['footer'].
Definition at line 395 of file WebPage.py.
|
inherited |
Generate the page header. Default value comes from self.pageConfig['header'].
Definition at line 383 of file WebPage.py.
|
inherited |
Return the complete page.
Definition at line 324 of file WebPage.py.
|
inherited |
Generate the navigation bar. Default value comes from self.pageConfig['navigation'].
Definition at line 387 of file WebPage.py.
|
inherited |
Override provides a hook where code to generate or redirect to an alternative page can be placed by derived classes. If not override of the normal page is desired, override should return None. Otherwise it should either raise an appropriate exception or return a string containing the complete alternate page to display.
Definition at line 375 of file WebPage.py.
|
inherited |
Short cut to retrieve the name (the last element in the URL) of the current page. This works only if the page has been added into the page tree using addPage.
Definition at line 294 of file WebPage.py.
|
staticinherited |
Definition at line 345 of file WebPage.py.
|
inherited |
Definition at line 290 of file WebPage.py.
|
inherited |
Definition at line 291 of file WebPage.py.
|
inherited |
Definition at line 273 of file WebPage.py.