Codebase list python-faraday / 4e5bce6
Refresh patches Sophie Brun 5 years ago
1 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
1515 +# from utils import dependencies
1616 from utils.user_input import query_yes_no
1717 from faraday import FARADAY_BASE
18 except ImportError as ex:
19 @@ -32,31 +32,31 @@ def setup_environment(check_deps=False):
18 from alembic.script import ScriptDirectory
19 @@ -35,31 +35,31 @@ def setup_environment(check_deps=False):
2020 # Configuration files generation
2121 server.config.copy_default_config_to_local()
2222
6868 # Web configuration file generation
6969 server.config.gen_web_config()
7070
71 @@ -132,7 +132,7 @@ def main():
71 @@ -152,7 +152,7 @@ def main():
7272 parser.add_argument('--start', action='store_true', help='run Faraday Server in background')
7373 parser.add_argument('--stop', action='store_true', help='stop Faraday Server')
7474 parser.add_argument('--restart', action='store_true', help='Restart Faraday Server')
7777 parser.add_argument('--no-setup', action='store_true', help=argparse.SUPPRESS)
7878 parser.add_argument('--port', help='Overides server.ini port configuration')
7979 parser.add_argument('--websocket_port', help='Overides server.ini websocket port configuration')
80 @@ -185,7 +185,7 @@ def main():
80 @@ -205,7 +205,7 @@ def main():
8181 server.config.ssl.enabled = 'true'
8282
8383 if not args.no_setup:
8888 server.config.faraday_server.port = args.port
8989 --- a/faraday.py
9090 +++ b/faraday.py
91 @@ -29,7 +29,7 @@ from config.globals import (
91 @@ -29,7 +29,7 @@ from config.constant import (
9292 CONST_REQUIREMENTS_FILE,
9393 CONST_FARADAY_FOLDER_LIST,
9494 )
246246
247247 --- a/manage.py
248248 +++ b/manage.py
249 @@ -111,9 +111,9 @@ def sql_shell():
249 @@ -114,9 +114,9 @@ def sql_shell():
250250 @click.command(help='Checks configuration and faraday status.')
251251 @click.option('--check_postgresql', default=False, is_flag=True)
252252 @click.option('--check_faraday', default=False, is_flag=True)
258258
259259 selected = False
260260 exit_code = 0
261 @@ -127,9 +127,9 @@ def status_check(check_postgresql, check
261 @@ -130,9 +130,9 @@ def status_check(check_postgresql, check
262262 status_check_functions.print_faraday_status()
263263 selected = True
264264
282282 from requests.exceptions import InvalidURL, ConnectionError
283283 from colorama import Fore, Back, Style
284284 from server.utils.daemonize import is_server_running
285 @@ -106,37 +106,37 @@ def check_client():
285 @@ -116,37 +116,37 @@ def check_client():
286286 return False
287287
288288
351351
352352
353353 def check_credentials():
354 @@ -229,35 +229,35 @@ def print_faraday_status():
354 @@ -248,35 +248,35 @@ def print_faraday_status():
355355 .format(yellow=Fore.YELLOW, white=Fore.WHITE))
356356
357357
415415
416416 def print_config_status():
417417 """Prints Status of the configuration using check_credentials(), check_storage_permission() and check_open_ports()"""
418 @@ -297,8 +297,8 @@ def full_status_check():
418 @@ -316,8 +316,8 @@ def full_status_check():
419419 print('\n{white}Checking if Faraday is running...'.format(white=Fore.WHITE))
420420 print_faraday_status()
421421