Codebase list python-faraday / c25da7a
New upstream version 2.7.2 Sophie Brun 6 years ago
5 changed file(s) with 14 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
66
77 New features in the latest update
88 =====================================
9
10 April 10, 2018:
11 ---
12 * Fix bug with tornado version 5.0 and GTK client.
913
1014 November 17, 2017:
1115 ---
0 2.7.1
0 2.7.2
2424
2525 _plugin_controller_api = None
2626 _http_server = None
27
28
27 ioloop_instance = None
2928 def startServer():
3029 global _http_server
30 global ioloop_instance
3131 if _http_server is not None:
32 IOLoop.instance().start()
32 ioloop_instance.start()
3333
3434
3535 def stopServer():
3636 global _http_server
37 global ioloop_instance
3738 if _http_server is not None:
38 IOLoop.instance().stop()
39 ioloop_instance.stop()
3940 _http_server.stop()
4041
4142
4243 def startAPIs(plugin_controller, model_controller, hostname, port):
4344 global _rest_controllers
4445 global _http_server
46 global ioloop_instance
4547 _rest_controllers = [PluginControllerAPI(plugin_controller), ModelControllerAPI(model_controller)]
4648
4749 app = Flask('APISController')
4850
51 ioloop_instance = IOLoop.current()
4952 _http_server = HTTPServer(WSGIContainer(app))
5053 while True:
5154 try:
7477 logging.getLogger("tornado.access").addHandler(logger.getLogger(app))
7578 logging.getLogger("tornado.access").propagate = False
7679 threading.Thread(target=startServer).start()
77
78 def stopAPIs():
79 stopServer()
8080
8181
8282 class RESTApi(object):
11 <faraday>
22
33 <appname>Faraday - Penetration Test IDE</appname>
4 <version>2.7.1</version>
4 <version>2.7.2</version>
55 <debug_status>0</debug_status>
66 <font>-Misc-Fixed-medium-r-normal-*-12-100-100-100-c-70-iso8859-1</font>
77 <home_path>~/</home_path>
88 from sqlalchemy.ext.declarative import declarative_base
99
1010
11 SCHEMA_VERSION = 'W.2.7.1'
11 SCHEMA_VERSION = 'W.2.7.2'
1212
1313 Base = declarative_base()
1414