ATLAS Offline Software
Loading...
Searching...
No Matches
DebugPage.py
Go to the documentation of this file.
1# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3"""
4ATLAS beam spot web page for debugging
5"""
6
7__author__ = 'Juerg Beringer'
8__version__ = 'DebugPage.py atlas/athena'
9
10from BeamSpotWebPage import BeamSpotWebPage
11from InDetBeamSpotExample.Utils import getUserName
12
13import sys, os
14
15import subprocess
16
17
18debuginfo = """
19<div class="text">
20<pre>
21Python version: %s
22Web server user: %s
23whoami output: %s
24HOME dir: %s
25URL base path: %s
26
27List of pages: %s
28Page attributes: %s
29
30Job directory: %s
31TaskManager DB: %s
32www directory: %s
33nt directory: %s
34</pre>
35</div>
36"""
37
38
40
41 def content(self,**args):
42 # Make sure we don't expose any password stored in oracle connection strings
43 taskDb = 'oracle:******' if 'oracle:' in self.globalConfig['taskDb'] else self.globalConfig['taskDb']
44 return debuginfo % (sys.version,
45 getUserName(),
46 subprocess.getoutput('whoami'),
47 os.environ.get('HOME','not defined'),
48 self.globalConfig.baseUrl,
49 self.globalConfig.pageList,
50 self.globalConfig.pageAttributes,
51
52 self.globalConfig['jobDir'],
53 taskDb,
54 self.globalConfig['wwwDir'],
55 self.globalConfig['ntDir'])
content(self, **args)
Definition DebugPage.py:41