-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
611 additions
and
811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import inspect | ||
from os import environ, path, pardir | ||
|
||
pkg_path = path.dirname( path.abspath(__file__) ) | ||
|
||
""" | ||
Global variables | ||
""" | ||
|
||
ENV = environ.get('HTTP_HOST', "local") | ||
|
||
PKG_PATH = pkg_path | ||
CONF_PATH = path.join( pkg_path, "definitions") | ||
LIB_PATH = path.join( pkg_path, "lib") | ||
|
||
# path of the calling script is used to point to a local config directory | ||
__caller_path = path.dirname(path.abspath((inspect.stack()[1])[1])) | ||
LOC_PATH = path.join(__caller_path, "local") | ||
|
||
# Database settings | ||
# TODO: wrap them into object to make them mutable for local changes | ||
DB_MONGOHOST = environ.get("BYCON_MONGO_HOST", "localhost") | ||
HOUSEKEEPING_DB = "_byconHousekeepingDB" | ||
HOUSEKEEPING_INFO_COLL = "beaconinfo" | ||
HOUSEKEEPING_HO_COLL = "querybuffer" | ||
|
||
SERVICES_DB = "_byconServicesDB" | ||
GENES_COLL = "genes" | ||
GEOLOCS_COLL = "geolocs" | ||
|
||
#------------------------------------------------------------------------------# | ||
|
||
# not really to be modified... | ||
|
||
GRANULARITY_LEVELS = { | ||
"none": 0, | ||
"boolean": 1, | ||
"count": 2, | ||
"record": 3 | ||
} | ||
|
||
################################################################################ | ||
|
||
# to be modified during execution | ||
|
||
BYC = { | ||
"DEBUG_MODE": False, | ||
"TEST_MODE": False, | ||
"ERRORS": [], | ||
"WARNINGS": [] | ||
} | ||
|
||
################################################################################ | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.