diff --git a/Dockerfile b/Dockerfile index 7bfe6e8..1290e10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,7 +54,7 @@ COPY supervisor/components/ ${TFW_SUPERVISORD_COMPONENTS} COPY nginx/nginx.conf ${TFW_NGINX_CONF} COPY nginx/default.conf ${TFW_NGINX_DEFAULT} COPY nginx/components/ ${TFW_NGINX_COMPONENTS} -COPY lib LICENSE ${TFW_LIB_DIR}/ +COPY lib ${TFW_LIB_DIR}/ COPY supervisor/tfw_server.py ${TFW_SERVER_DIR}/ RUN for dir in "${TFW_LIB_DIR}"/{tfw,tao,envvars} "/etc/nginx" "/etc/supervisor"; do \ diff --git a/LICENSE b/LICENSE deleted file mode 100644 index be3bf3b..0000000 --- a/LICENSE +++ /dev/null @@ -1,12 +0,0 @@ -AVATAO CONFIDENTIAL - -Copyright (C) 2018 Avatao.com Innovative Learning Kft. -All Rights Reserved. - -All source code, configuration files and documentation contained herein -is, and remains the exclusive property of Avatao.com Innovative Learning Kft. -The intellectual and technical concepts contained herein are proprietary -to Avatao.com Innovative Learning Kft. and are protected by trade secret -or copyright law. Dissemination of this information or reproduction of -this material is strictly forbidden unless prior written permission is -obtained from Avatao.com Innovative Learning Kft. diff --git a/lib/envvars/__init__.py b/lib/envvars/__init__.py index 46774d4..a96ed9f 100644 --- a/lib/envvars/__init__.py +++ b/lib/envvars/__init__.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from collections import namedtuple from os import environ diff --git a/lib/tao/__init__.py b/lib/tao/__init__.py index db64b25..e69de29 100644 --- a/lib/tao/__init__.py +++ b/lib/tao/__init__.py @@ -1,2 +0,0 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. diff --git a/lib/tao/config/__init__.py b/lib/tao/config/__init__.py index 4876c01..fd07e8b 100644 --- a/lib/tao/config/__init__.py +++ b/lib/tao/config/__init__.py @@ -1,4 +1 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from .envvars import TAOENV diff --git a/lib/tao/config/envvars.py b/lib/tao/config/envvars.py index 260d057..813d06f 100644 --- a/lib/tao/config/envvars.py +++ b/lib/tao/config/envvars.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from envvars import LazyEnvironment TAOENV = LazyEnvironment('AVATAO_', 'taoenvtuple').environment diff --git a/lib/tfw/__init__.py b/lib/tfw/__init__.py index db64b25..e69de29 100644 --- a/lib/tfw/__init__.py +++ b/lib/tfw/__init__.py @@ -1,2 +0,0 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. diff --git a/lib/tfw/builtins/directory_snapshotting_event_handler.py b/lib/tfw/builtins/directory_snapshotting_event_handler.py index 81683c5..25986eb 100644 --- a/lib/tfw/builtins/directory_snapshotting_event_handler.py +++ b/lib/tfw/builtins/directory_snapshotting_event_handler.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from os.path import join as joinpath from os.path import basename diff --git a/lib/tfw/builtins/fsm_aware_event_handler.py b/lib/tfw/builtins/fsm_aware_event_handler.py index ac467ed..a619ca1 100644 --- a/lib/tfw/builtins/fsm_aware_event_handler.py +++ b/lib/tfw/builtins/fsm_aware_event_handler.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from abc import ABC from tfw.components import FSMAware diff --git a/lib/tfw/builtins/fsm_managing_event_handler.py b/lib/tfw/builtins/fsm_managing_event_handler.py index 8b5f4d6..d7bebdd 100644 --- a/lib/tfw/builtins/fsm_managing_event_handler.py +++ b/lib/tfw/builtins/fsm_managing_event_handler.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from tfw.crypto import KeyManager, sign_message, verify_message diff --git a/lib/tfw/builtins/ide_event_handler.py b/lib/tfw/builtins/ide_event_handler.py index e03fc17..ab5a7eb 100644 --- a/lib/tfw/builtins/ide_event_handler.py +++ b/lib/tfw/builtins/ide_event_handler.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from tfw.networking import Scope diff --git a/lib/tfw/builtins/log_monitoring_event_handler.py b/lib/tfw/builtins/log_monitoring_event_handler.py index 85699c8..9b9a900 100644 --- a/lib/tfw/builtins/log_monitoring_event_handler.py +++ b/lib/tfw/builtins/log_monitoring_event_handler.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from tfw.networking import Scope diff --git a/lib/tfw/builtins/message_sender.py b/lib/tfw/builtins/message_sender.py index a4ee179..e6c1cfb 100644 --- a/lib/tfw/builtins/message_sender.py +++ b/lib/tfw/builtins/message_sender.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from .tfw_server_connector import TFWServerUplinkConnector diff --git a/lib/tfw/builtins/process_managing_event_handler.py b/lib/tfw/builtins/process_managing_event_handler.py index 5f687cd..abaec9d 100644 --- a/lib/tfw/builtins/process_managing_event_handler.py +++ b/lib/tfw/builtins/process_managing_event_handler.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from xmlrpc.client import Fault as SupervisorFault diff --git a/lib/tfw/builtins/terminal_event_handler.py b/lib/tfw/builtins/terminal_event_handler.py index 9b0df08..2d45417 100644 --- a/lib/tfw/builtins/terminal_event_handler.py +++ b/lib/tfw/builtins/terminal_event_handler.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from tfw.networking import Scope diff --git a/lib/tfw/components/__init__.py b/lib/tfw/components/__init__.py index 75e6531..99c5149 100644 --- a/lib/tfw/components/__init__.py +++ b/lib/tfw/components/__init__.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from .commands_equal import CommandsEqual from .file_manager import FileManager from .history_monitor import HistoryMonitor, BashMonitor, GDBMonitor diff --git a/lib/tfw/components/commands_equal.py b/lib/tfw/components/commands_equal.py index d2d4d15..b52aa6b 100644 --- a/lib/tfw/components/commands_equal.py +++ b/lib/tfw/components/commands_equal.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from shlex import split from re import search diff --git a/lib/tfw/components/fsm_aware.py b/lib/tfw/components/fsm_aware.py index beb4957..395a162 100644 --- a/lib/tfw/components/fsm_aware.py +++ b/lib/tfw/components/fsm_aware.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from tfw.crypto import KeyManager, verify_message diff --git a/lib/tfw/components/history_monitor.py b/lib/tfw/components/history_monitor.py index 99add98..899217d 100644 --- a/lib/tfw/components/history_monitor.py +++ b/lib/tfw/components/history_monitor.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from re import findall from re import compile as compileregex from abc import ABC, abstractmethod diff --git a/lib/tfw/components/snapshot_provider.py b/lib/tfw/components/snapshot_provider.py index 8bd17bf..147fc2f 100644 --- a/lib/tfw/components/snapshot_provider.py +++ b/lib/tfw/components/snapshot_provider.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import re from subprocess import run, CalledProcessError, PIPE from getpass import getuser diff --git a/lib/tfw/components/terminado_mini_server.py b/lib/tfw/components/terminado_mini_server.py index a440e23..b273f5b 100644 --- a/lib/tfw/components/terminado_mini_server.py +++ b/lib/tfw/components/terminado_mini_server.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from tornado.ioloop import IOLoop diff --git a/lib/tfw/components/terminal_commands.py b/lib/tfw/components/terminal_commands.py index e536c92..adba1b4 100644 --- a/lib/tfw/components/terminal_commands.py +++ b/lib/tfw/components/terminal_commands.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from abc import ABC from re import match diff --git a/lib/tfw/config/__init__.py b/lib/tfw/config/__init__.py index 3614ad9..b9719ef 100644 --- a/lib/tfw/config/__init__.py +++ b/lib/tfw/config/__init__.py @@ -1,4 +1 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from .envvars import TFWENV diff --git a/lib/tfw/config/envvars.py b/lib/tfw/config/envvars.py index ef590c6..68adb0e 100644 --- a/lib/tfw/config/envvars.py +++ b/lib/tfw/config/envvars.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from envvars import LazyEnvironment TFWENV = LazyEnvironment('TFW_', 'tfwenvtuple').environment diff --git a/lib/tfw/crypto.py b/lib/tfw/crypto.py index 344abee..bdd1fad 100644 --- a/lib/tfw/crypto.py +++ b/lib/tfw/crypto.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from functools import wraps from base64 import b64encode, b64decode from copy import deepcopy diff --git a/lib/tfw/decorators/__init__.py b/lib/tfw/decorators/__init__.py index db64b25..e69de29 100644 --- a/lib/tfw/decorators/__init__.py +++ b/lib/tfw/decorators/__init__.py @@ -1,2 +0,0 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. diff --git a/lib/tfw/decorators/lazy_property.py b/lib/tfw/decorators/lazy_property.py index 14ad788..0bdd35f 100644 --- a/lib/tfw/decorators/lazy_property.py +++ b/lib/tfw/decorators/lazy_property.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from functools import update_wrapper, wraps diff --git a/lib/tfw/decorators/rate_limiter.py b/lib/tfw/decorators/rate_limiter.py index 6f666c8..5f8e253 100644 --- a/lib/tfw/decorators/rate_limiter.py +++ b/lib/tfw/decorators/rate_limiter.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from functools import wraps, partial from time import time, sleep diff --git a/lib/tfw/event_handlers/__init__.py b/lib/tfw/event_handlers/__init__.py index 447f617..7284ec8 100644 --- a/lib/tfw/event_handlers/__init__.py +++ b/lib/tfw/event_handlers/__init__.py @@ -1,4 +1 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from .event_handler_base import EventHandlerBase diff --git a/lib/tfw/event_handlers/event_handler_base.py b/lib/tfw/event_handlers/event_handler_base.py index 281c92f..ecf944b 100644 --- a/lib/tfw/event_handlers/event_handler_base.py +++ b/lib/tfw/event_handlers/event_handler_base.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from inspect import currentframe from typing import Iterable diff --git a/lib/tfw/fsm/__init__.py b/lib/tfw/fsm/__init__.py index 11a7a58..2516525 100644 --- a/lib/tfw/fsm/__init__.py +++ b/lib/tfw/fsm/__init__.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from .fsm_base import FSMBase from .linear_fsm import LinearFSM from .yaml_fsm import YamlFSM diff --git a/lib/tfw/fsm/fsm_base.py b/lib/tfw/fsm/fsm_base.py index 5b050e0..e4f9645 100644 --- a/lib/tfw/fsm/fsm_base.py +++ b/lib/tfw/fsm/fsm_base.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from collections import defaultdict from datetime import datetime diff --git a/lib/tfw/fsm/linear_fsm.py b/lib/tfw/fsm/linear_fsm.py index 5ac5eaf..383f98e 100644 --- a/lib/tfw/fsm/linear_fsm.py +++ b/lib/tfw/fsm/linear_fsm.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from transitions import State from tfw.fsm.fsm_base import FSMBase diff --git a/lib/tfw/fsm/yaml_fsm.py b/lib/tfw/fsm/yaml_fsm.py index fbfc542..facce7c 100644 --- a/lib/tfw/fsm/yaml_fsm.py +++ b/lib/tfw/fsm/yaml_fsm.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from subprocess import Popen, run from functools import partial, singledispatch from contextlib import suppress diff --git a/lib/tfw/mixins/__init__.py b/lib/tfw/mixins/__init__.py index db64b25..e69de29 100644 --- a/lib/tfw/mixins/__init__.py +++ b/lib/tfw/mixins/__init__.py @@ -1,2 +0,0 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. diff --git a/lib/tfw/mixins/callback_mixin.py b/lib/tfw/mixins/callback_mixin.py index 8075f47..36b0f64 100644 --- a/lib/tfw/mixins/callback_mixin.py +++ b/lib/tfw/mixins/callback_mixin.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from functools import partial from tfw.decorators.lazy_property import lazy_property diff --git a/lib/tfw/mixins/supervisor_mixin.py b/lib/tfw/mixins/supervisor_mixin.py index 189d7cc..216f34b 100644 --- a/lib/tfw/mixins/supervisor_mixin.py +++ b/lib/tfw/mixins/supervisor_mixin.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import xmlrpc.client from xmlrpc.client import Fault as SupervisorFault from contextlib import suppress diff --git a/lib/tfw/networking/__init__.py b/lib/tfw/networking/__init__.py index 49e896d..62766cd 100644 --- a/lib/tfw/networking/__init__.py +++ b/lib/tfw/networking/__init__.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - from .serialization import serialize_tfw_msg, deserialize_tfw_msg, with_deserialize_tfw_msg, message_bytes from .server_connector import ServerUplinkConnector, ServerDownlinkConnector, ServerConnector from .event_handler_connector import EventHandlerConnector diff --git a/lib/tfw/networking/event_handler_connector.py b/lib/tfw/networking/event_handler_connector.py index e9b2511..60cbb94 100644 --- a/lib/tfw/networking/event_handler_connector.py +++ b/lib/tfw/networking/event_handler_connector.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging import zmq diff --git a/lib/tfw/networking/serialization.py b/lib/tfw/networking/serialization.py index c54609b..e329a6c 100644 --- a/lib/tfw/networking/serialization.py +++ b/lib/tfw/networking/serialization.py @@ -1,5 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. """ TFW JSON message format diff --git a/lib/tfw/networking/server_connector.py b/lib/tfw/networking/server_connector.py index dc3c78c..e1ef1fe 100644 --- a/lib/tfw/networking/server_connector.py +++ b/lib/tfw/networking/server_connector.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from functools import partial diff --git a/lib/tfw/server/tfw_server.py b/lib/tfw/server/tfw_server.py index a7f7804..d524265 100644 --- a/lib/tfw/server/tfw_server.py +++ b/lib/tfw/server/tfw_server.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import logging from tornado.web import Application diff --git a/lib/tfw/server/zmq_websocket_router.py b/lib/tfw/server/zmq_websocket_router.py index 8ad0905..f682f02 100644 --- a/lib/tfw/server/zmq_websocket_router.py +++ b/lib/tfw/server/zmq_websocket_router.py @@ -1,6 +1,3 @@ -# Copyright (C) 2018 Avatao.com Innovative Learning Kft. -# All Rights Reserved. See LICENSE file for details. - import json import logging