mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
appease linter
This commit is contained in:
parent
2d77c456ca
commit
02b7cb8205
@ -47,7 +47,13 @@ class Webserver:
|
||||
controller: Controller
|
||||
helper: Helpers
|
||||
|
||||
def __init__(self, helper: Helpers, controller: Controller, tasks_manager, file_helper: FileHelpers):
|
||||
def __init__(
|
||||
self,
|
||||
helper: Helpers,
|
||||
controller: Controller,
|
||||
tasks_manager,
|
||||
file_helper: FileHelpers
|
||||
):
|
||||
self.ioloop = None
|
||||
self.http_server = None
|
||||
self.https_server = None
|
||||
|
@ -125,22 +125,6 @@ class SocketHandler(BaseSocketHandler):
|
||||
"remove_spinner",
|
||||
"close_upload_box",
|
||||
} # Must be overridden at init
|
||||
page = None
|
||||
page_query_params = None
|
||||
controller = None
|
||||
tasks_manager = None
|
||||
translator = None
|
||||
io_loop = None
|
||||
|
||||
#Removed because exactly as the mother class
|
||||
#def initialize(
|
||||
# self, helper=None, controller=None, tasks_manager=None, translator=None, file_helper=None
|
||||
#):
|
||||
# self.helper = helper
|
||||
# self.controller = controller
|
||||
# self.tasks_manager = tasks_manager
|
||||
# self.translator = translator
|
||||
# self.io_loop = tornado.ioloop.IOLoop.current()
|
||||
|
||||
def get_user_id(self):
|
||||
_, _, user = self.controller.authentication.check(self.get_cookie("token"))
|
||||
|
Loading…
Reference in New Issue
Block a user