-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:biocore/qiita
- Loading branch information
Showing
202 changed files
with
11,548 additions
and
9,096 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
2 changes: 1 addition & 1 deletion
2
notebooks/resource-allocation/generate-allocation-summary-arrays.py
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 |
---|---|---|
|
@@ -109,6 +109,12 @@ class ConfigurationManager(object): | |
The portal subdirectory used in the URL | ||
portal_fp : str | ||
The filepath to the portal styling config file | ||
stats_map_center_latitude : float | ||
The center latitude of the world map, shown on the Stats map. | ||
Defaults to 40.01027 (Boulder, CO, USA) | ||
stats_map_center_longitude : float | ||
The center longitude of the world map, shown on the Stats map. | ||
Defaults to -105.24827 (Boulder, CO, USA) | ||
qiita_env : str | ||
The script used to start the qiita environment | ||
private_launcher : str | ||
|
@@ -117,6 +123,10 @@ class ConfigurationManager(object): | |
The script used to start the plugins | ||
plugin_dir : str | ||
The path to the directory containing the plugin configuration files | ||
help_email : str | ||
The email address a user should write to when asking for help | ||
sysadmin_email : str | ||
The email address, Qiita sends internal notifications to a sys admin | ||
Raises | ||
------ | ||
|
@@ -234,6 +244,32 @@ def _get_main(self, config): | |
self.key_file = join(install_dir, 'qiita_core', 'support_files', | ||
'ci_server.key') | ||
|
||
self.help_email = config.get('main', 'HELP_EMAIL') | ||
if not self.help_email: | ||
raise ValueError( | ||
"You did not specify the HELP_EMAIL address in the main " | ||
"section of Qiita's config file. This address is essential " | ||
"for users to ask for help as it is displayed at various " | ||
"location throughout Qiita's web pages.") | ||
if (self.help_email == '[email protected]') and \ | ||
(self.test_environment is False): | ||
warnings.warn( | ||
"Using the github fake email for HELP_EMAIL, " | ||
"are you sure this is OK?") | ||
|
||
self.sysadmin_email = config.get('main', 'SYSADMIN_EMAIL') | ||
if not self.sysadmin_email: | ||
raise ValueError( | ||
"You did not specify the SYSADMIN_EMAIL address in the main " | ||
"section of Qiita's config file. Serious issues will " | ||
"automatically be reported to a sys admin, an according " | ||
"address is therefore required!") | ||
if (self.sysadmin_email == '[email protected]') and \ | ||
(self.test_environment is False): | ||
warnings.warn( | ||
"Using the github fake email for SYSADMIN_EMAIL, " | ||
"are you sure this is OK?") | ||
|
||
def _get_job_scheduler(self, config): | ||
"""Get the configuration of the job_scheduler section""" | ||
self.job_scheduler_owner = config.get( | ||
|
@@ -317,5 +353,40 @@ def _get_portal(self, config): | |
else: | ||
self.portal_dir = "" | ||
|
||
msg = ("The value %s for %s you set in Qiita's configuration file " | ||
"(section 'portal') for the Stats world map cannot be " | ||
"intepreted as a float! %s") | ||
lat_default = 40.01027 # Boulder CO, USA | ||
try: | ||
self.stats_map_center_latitude = config.get( | ||
'portal', 'STATS_MAP_CENTER_LATITUDE', fallback=lat_default) | ||
if self.stats_map_center_latitude == '': | ||
self.stats_map_center_latitude = lat_default | ||
self.stats_map_center_latitude = float( | ||
self.stats_map_center_latitude) | ||
except ValueError as e: | ||
raise ValueError(msg % (self.stats_map_center_latitude, | ||
'STATS_MAP_CENTER_LATITUDE', e)) | ||
|
||
lon_default = -105.24827 # Boulder CO, USA | ||
try: | ||
self.stats_map_center_longitude = config.get( | ||
'portal', 'STATS_MAP_CENTER_LONGITUDE', fallback=lon_default) | ||
if self.stats_map_center_longitude == '': | ||
self.stats_map_center_longitude = lon_default | ||
self.stats_map_center_longitude = float( | ||
self.stats_map_center_longitude) | ||
except ValueError as e: | ||
raise ValueError(msg % (self.stats_map_center_longitude, | ||
'STATS_MAP_CENTER_LONGITUDE', e)) | ||
for (name, val) in [('latitude', self.stats_map_center_latitude), | ||
('longitude', self.stats_map_center_longitude)]: | ||
msg = ("The %s of %s you set in Qiita's configuration file " | ||
"(section 'portal') for the Stats world map cannot be %s!") | ||
if val < -180: | ||
raise ValueError(msg % (name, val, 'smaller than -180°')) | ||
if val > 180: | ||
raise ValueError(msg % (name, val, 'larger than 180°')) | ||
|
||
def _iframe(self, config): | ||
self.iframe_qiimp = config.get('iframe', 'QIIMP') | ||
self.iframe_qiimp = config.get('iframe', 'QIIMP', fallback=None) |
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,7 @@ | ||
authorityKeyIdentifier=keyid,issuer | ||
basicConstraints=CA:FALSE | ||
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment | ||
subjectAltName = @alt_names | ||
|
||
[alt_names] | ||
DNS.1 = localhost |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
-----BEGIN CERT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YgE8gk9hDY62qlLgp5yC6o9mOh | ||
OM91RLYk461tP+BA72t2TXZ+smihV/eF2YHjnto85HOHAde2tVADsQqz/sSiqXuc | ||
7Hxn0nKlwIBYD1zvoxqqL2YUHa4wp2fOp1jJ9H3zNA== | ||
-----END CERTIFICATE----- |
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,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDC1vjTsLU7DajT | ||
nfeoib2B6tzVpg+iKDR5Wb3WyjkiO1suRJlgZFRqgIX+agWXCfQlZhjvjbbB8OG+ | ||
NdNqYrOyBujA2Hxr2tVpDEU65lNaI3ok1jdm1+C2r5jXLo9FQoJv30TYpRenwm7k | ||
a8Q4SPb8BC1UAji8oWCB4dIKlMppkOtX7+a5TWaaRv/l2IdbmAzX1U6KGluP9bkq | ||
Lg1e60io1FK2UpAxhaKm2Zt+rNsBTuygDfpWN2ltUGxAm6s85aqxZB2K8X80WCXg | ||
WyMMR4UIH+hnVId7+KDZyvCtFPtRmOmdmriDiMNp/MY8IFjtpQYROzPfYEw9XY/b | ||
bIqOJw+nAgMBAAECggEAJy8Mg6Y6DFJG7agLMn3g+su89cqbwkTLqMv/fb7VlqjR | ||
QZDSN6x1vaVzTSMNVL7PtuW9hg+9/WrwO0yf4/lNojP5gy8GdrpfyOyKz7macbpI | ||
yje6lJg9vP+7gSr/7THfAZipQ9iP1VEo9A8oOxmRckV0yDxaJLVfrz82+qHJw0jj | ||
Iy/8kkKtQEZ8gN547IDVladRunAGU4xYl9n9hPDfAbA3lPkjNTytzPk8Be4X98kW | ||
K2L4Q0wloRV6/n7qDamyjFsDarswxFA+TXypiESxQHFCdNiSKqAv3DHE6QcYRWQK | ||
vwa5QfCIHFpMsclbmGvB9WSPxC6HcMppcWyf5V9RgQKBgQD/xlK2X0ig1yqn9OMX | ||
oo8XRWZqC4skn3/I8RkeMKS1dBg3o0v3c6uF4RY4i35lMZdPewFtYy8SEQa3XMSk | ||
6z/DCeBKzIbjqxv5pSFrMu2MR72SlmnTkbyq6T4t+OIII75T11XtbQLidDvZNgQI | ||
8lnQQsJfBJZQQ/+ERICNomMGlwKBgQDDAuh6gVic/lF4geCAhkRarjrZlUohWUuD | ||
1jSbSuXs5GoxMZ9+b2JAA2SUxIY3itw/SCT0ASoylmuAcoaZ7OJsjEq5EjJx5uns | ||
GcJ6TDeGIa9ttGwU5FyLLnCdM4ndGtAYAcDdQWAAkGT+gNOQgqX81bnqhEWGNDkY | ||
9LxCL0vxcQKBgGjD90U0Ki+XcqVxLUOVFj9V8ekl6UyK+HB6MOuoyQ56CyFfBdLJ | ||
0kv4Mn3exVr1wSCRJbiEk9c2miWpHfLfWTKubOy2cdn3UHIlLVcXeS2ohQHyEk7S | ||
txDakNmLxCnJWkBFR7EEodXX/luuQGDZw+gGME9zNY6TC6pF1NIu3ZjpAoGAf4HQ | ||
RgF60jPLS1MIWqDv4qbXHdtqPAHpyUru3LcNPWZgNMgwc/gaMqbFRix1Ya2ussXW | ||
O6DjWW5W3gaEEfL8XWMhnH7Ucvs76j8xlMtu5onx7XYx0Ts7c1mrEm5XbzWP6JKE | ||
62ZKgjPnhSzwqCV0qKuKQ1e3KbfNuY6T5WaNblECgYAZs2s3Hw8eBPDFHVqRdHfl | ||
a5+M8cXk2pUytNCGwJZ/Q/OJLUH/M9VOUE6ncHs4iX2XoCrHHqHjwZ2s3wgryS2n | ||
8RJP8Zx0ZQqkgrXrfxxABY8UJsmUQu4X5EksoCYgv6owqNM6NuQBnfSwY6y8TjFs | ||
4+5t5RSoyHDQeIc4OKiCdA== | ||
-----END PRIVATE KEY----- |
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 |
---|---|---|
@@ -1 +1 @@ | ||
2FB946B7AAF21FDC0387BAA7B5ABF5D91E0D9F4B | ||
2FB946B7AAF21FDC0387BAA7B5ABF5D91E0D9F4C |
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDoTCCAomgAwIBAgIUL7lGt6ryH9wDh7qntav12R4Nn0swDQYJKoZIhvcNAQEL | ||
MIIDoTCCAomgAwIBAgIUL7lGt6ryH9wDh7qntav12R4Nn0wwDQYJKoZIhvcNAQEL | ||
BQAwNTESMBAGA1UEAwwJbG9jYWxob3N0MQswCQYDVQQGEwJVUzESMBAGA1UEBwwJ | ||
U2FuIERpZWdvMB4XDTIzMDUzMDE4MDQzMloXDTI0MDUyOTE4MDQzMlowbjELMAkG | ||
U2FuIERpZWdvMB4XDTI0MDUzMTEzMjcwNVoXDTMzMDgxNzEzMjcwNVowbjELMAkG | ||
A1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExEjAQBgNVBAcMCVNhbiBEaWVn | ||
bzENMAsGA1UECgwEVUNTRDETMBEGA1UECwwKS25pZ2h0IExhYjESMBAGA1UEAwwJ | ||
bG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvBP9ojX6 | ||
JJQkZQ/awx45BDiqCJTdggCVMhCF1dDwYHpNIADWVLqXosUOml2lPp8QAD3MrklB | ||
+blpPCjvBl/DqVsSqoGN3U3ocFyon4+7XzIXuI2js/Bf42PRCIDvu65WNNpfVmfC | ||
k1Pc4iTe/pIZEErZ4gENsTdhjvFmiWW+UPwGNu3Ud0RpQtQkvs0mKpp/91RZm4Ra | ||
woMa3fapfpLYzToSnAHfqP+1eCabLIpYp3Rsj2b0KsaMqyRO1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