ATLAS Offline Software
Loading...
Searching...
No Matches
index Namespace Reference

Functions

 setup_server ()

Variables

str __author__ = 'Juerg Beringer'
str __version__ = 'index.py atlas/athena'
 currentDir = os.path.dirname(os.path.abspath(__file__))
dict beamSpotConfig
 root = BeamSpotWebPage()
 baseUrl
 query
 config

Detailed Description

ATLAS Beam Spot web page. This is the root page that sets up the tree of beam spot
web pages. This is intended to be run by CherryPy through Apache's mod_python, but
you can test it locally using `python index.py`.

Sample Apache configuration:

<Location "/">
    PythonPath "sys.path+['/home/jb/atl/InDetBeamSpotExample/www']"
    SetHandler python-program
    PythonHandler cherrypy._cpmodpy::handler
    PythonOption cherrypy.setup index::setup_server
    PythonDebug On
</Location>

Function Documentation

◆ setup_server()

index.setup_server ( )

Definition at line 85 of file index.py.

85def setup_server():
86 cherrypy.config.update({'environment': 'production',
87 'log.screen': False,
88 'server.socket_host': '127.0.0.1',
89 'log.error_file': '/tmp/site.log',
90 'show_tracebacks': False})
91 cherrypy.tree.mount(root, root.globalConfig.baseUrl, config=beamSpotConfig)
92
93
94# Code to test or run locally

Variable Documentation

◆ __author__

str index.__author__ = 'Juerg Beringer'
private

Definition at line 19 of file index.py.

◆ __version__

str index.__version__ = 'index.py atlas/athena'
private

Definition at line 20 of file index.py.

◆ baseUrl

index.baseUrl

Definition at line 53 of file index.py.

◆ beamSpotConfig

dict index.beamSpotConfig
Initial value:
1= {
2 '/': { 'tools.staticdir.root': currentDir},
3 '/css': { 'tools.staticdir.on': True,
4 'tools.staticdir.dir': 'css'},
5 '/js': { 'tools.staticdir.on': True,
6 'tools.staticdir.dir': 'js'},
7 '/images': { 'tools.staticdir.on': True,
8 'tools.staticdir.dir': 'images'},
9 '/tmp': { 'tools.staticdir.on': True,
10 'tools.staticdir.dir': 'tmp'}
11}

Definition at line 38 of file index.py.

◆ config

index.config

Definition at line 107 of file index.py.

◆ currentDir

index.currentDir = os.path.dirname(os.path.abspath(__file__))

Definition at line 37 of file index.py.

◆ query

index.query

Definition at line 72 of file index.py.

◆ root

index.root = BeamSpotWebPage()

Definition at line 52 of file index.py.