Skip to content

Commit f417071

Browse files
committed
add plotly_proxy_authorization flag to config file
1 parent cb6323e commit f417071

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plotly/tools.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def warning_on_one_line(message, category, filename, lineno, file=None, line=Non
5555
CONFIG_FILE: {'plotly_domain': 'https://plot.ly',
5656
'plotly_streaming_domain': 'stream.plot.ly',
5757
'plotly_api_domain': 'https://api.plot.ly',
58-
'plotly_ssl_verification': True}}
58+
'plotly_ssl_verification': True,
59+
'plotly_proxy_authorization': False}}
5960

6061
try:
6162
os.mkdir(TEST_DIR)
@@ -153,7 +154,8 @@ def reset_credentials_file():
153154
def set_config_file(plotly_domain=None,
154155
plotly_streaming_domain=None,
155156
plotly_api_domain=None,
156-
plotly_ssl_verification=None):
157+
plotly_ssl_verification=None,
158+
plotly_proxy_authorization=None):
157159
"""Set the keyword-value pairs in `~/.plotly/.config`.
158160
159161
"""
@@ -170,6 +172,8 @@ def set_config_file(plotly_domain=None,
170172
settings['plotly_api_domain'] = plotly_api_domain
171173
if isinstance(plotly_ssl_verification, (six.string_types, bool)):
172174
settings['plotly_ssl_verification'] = plotly_ssl_verification
175+
if isinstance(plotly_proxy_authorization, (six.string_types, bool)):
176+
settings['plotly_proxy_authorization'] = plotly_proxy_authorization
173177
utils.save_json_dict(CONFIG_FILE, settings)
174178
ensure_local_plotly_files() # make sure what we just put there is OK
175179

0 commit comments

Comments
 (0)