bp_config.py
Go to the documentation of this file.
1 import os
2 
3 #///////////////////////////////////////////////////////////////////////////////
4 # User Configuration
5 
6 """ BACKEND ................................................................ """
7 RELEASE_DIR = os.environ['SRT_PRIVATE_CONTEXT']
8 
9 CAPTION_EXTS = ['txt']
10 PLOT_EXTS = ['png', 'pdf', 'eps', 'ps', 'tiff', 'jpg', 'jpeg', 'gif']
11 ZIP_EXTS = ['tar', 'gz', 'tgz', 'zip']
12 
13 # -----------------------------------------------------------------------------
14 
15 
16 """ FRONTEND ............................................................... """
17 # Document root path for the website
18 WEB_ROOT = '/nusoft/app/web/htdoc/nova/blessedplots'
19 WEB_PLOTS = WEB_ROOT + '/plots'
20 
21 # -----------------------------------------------------------------------------
22 
23 
24 """ DOCDB .................................................................. """
25 # Base URI for DocDB HTTP requests
26 DOCDB_URI = 'https://nova-docdb.fnal.gov/cgi-bin/private/'
27 
28 # DocDB password is contained in an environment variable. Prevents us from
29 # having to hardcode the password into this code.
30 # NOTE: This requires the offline NOvA environment to be setup.
31 DOCDB_USER = 'nova'
32 DOCDB_PWD = open(os.environ['NOVADOCPWDFILE'], 'r').readlines()[0].strip()
33 
34 # -----------------------------------------------------------------------------
35 
36 
37 """ SQLITE3 ................................................................ """
38 # Path where SQLite3 database will be stored
39 SQLITE_FILE_PATH = WEB_ROOT + '/blessedplots.db'
40 
41 # Path to the SQL DB schema file
42 SQLITE_SCHEMA_PATH = RELEASE_DIR + '/BlessedPlots/bp_schema.sql'
43 
44 # -----------------------------------------------------------------------------
procfile open("FD_BRL_v0.txt")