-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
67 lines (57 loc) · 1.82 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
IS_TEST = True
REPOSITORY = 'cms-sw/cmssw'
def get_repo_url():
return 'https://github.com/' + REPOSITORY + '/'
CERN_SSO_CERT_FILE = 'private/cert.pem'
CERN_SSO_KEY_FILE = 'private/cert.key'
CERN_SSO_COOKIES_LOCATION = 'private/'
TWIKI_CONTACTS_URL = 'https://ppdcontacts.web.cern.ch/PPDContacts/ppd_contacts.txt'
TWIKI_TAG_COLLECTOR_URL = 'https://twiki.cern.ch/twiki/bin/edit/CMS/DQMP5TagCollector?nowysiwyg=1'
TWIKI_TAG_COLLECTOR_CANCEL_EDIT_URL = 'https://twiki.cern.ch/twiki/bin/save/CMS/DQMP5TagCollector'
CATEGORIES_MAP_URL = 'https://raw.githubusercontent.com/cms-sw/cms-bot/master/categories_map.py'
TWIKI_TIMEOUT_SECONDS = 10
__github_client_id = None
__github_client_secret = None
def get_github_client_id():
global __github_client_id
if __github_client_id == None:
__github_client_id = open('private/github_oauth_data.txt', 'r').readlines()[1].strip()
return __github_client_id
def get_github_client_secret():
global __github_client_secret
if __github_client_secret == None:
__github_client_secret = open('private/github_oauth_data.txt', 'r').readlines()[2].strip()
return __github_client_secret
def get_subsystems():
return ['l1t',
'hlt',
'tracker',
'sistrip',
'pixel',
'ecal',
'hcal',
'dt',
'rpc',
'csc',
'ct-pps',
'ctpps',
'bril',
'gem',
'hgcal',
'tracking',
'btag',
'vertexing',
'e-gamma',
'jetmet',
'lumi',
'muon',
'tau',
'generators',
'hfnose',
'beamspot',
'jme',
'jet',
'eventdisplay',
'castor',
'validation',
]