some refactorings

This commit is contained in:
Bastian Schroll 2019-10-28 21:20:05 +01:00
parent e061adab4c
commit 2f5184742f
No known key found for this signature in database
GPG key ID: 0AE96912A20E9F5F
8 changed files with 104 additions and 14 deletions

View file

@ -15,7 +15,7 @@
@description: Module to add descriptions to bwPackets
"""
import logging
from module.module import Module
from module.moduleBase import ModuleBase
# ###################### #
# Custom plugin includes #
@ -25,7 +25,7 @@ from module.module import Module
logging.debug("- %s loaded", __name__)
class BoswatchModule(Module):
class BoswatchModuleBase(ModuleBase):
"""!Adds descriptions to bwPackets"""
def __init__(self, config):
"""!Do not change anything here!"""

View file

@ -15,7 +15,7 @@
@description: Filter module for the packet type
"""
import logging
from module.module import Module
from module.moduleBase import ModuleBase
# ###################### #
# Custom plugin includes #
@ -25,7 +25,7 @@ from module.module import Module
logging.debug("- %s loaded", __name__)
class BoswatchModule(Module):
class BoswatchModuleBase(ModuleBase):
"""!Filter of specific bwPacket mode"""
def __init__(self, config):
"""!Do not change anything here!"""

View file

@ -15,7 +15,7 @@
@description: Regex filter module
"""
import logging
from module.module import Module
from module.moduleBase import ModuleBase
# ###################### #
# Custom plugin includes #
@ -25,7 +25,7 @@ import re
logging.debug("- %s loaded", __name__)
class BoswatchModule(Module):
class BoswatchModuleBase(ModuleBase):
"""!Regex based filter mechanism"""
def __init__(self, config):
"""!Do not change anything here!"""

View file

@ -9,7 +9,7 @@
German BOS Information Script
by Bastian Schroll
@file: module.py
@file: moduleBase.py
@date: 01.03.2019
@author: Bastian Schroll
@description: Module main class to inherit
@ -22,7 +22,7 @@ from boswatch import wildcard
logging.debug("- %s loaded", __name__)
class Module:
class ModuleBase:
"""!Main module class"""
_modulesActive = []

View file

@ -15,7 +15,7 @@
@description: Template Module File
"""
import logging
from module.module import Module
from module.moduleBase import ModuleBase
# ###################### #
# Custom plugin includes #
@ -25,7 +25,7 @@ from module.module import Module
logging.debug("- %s loaded", __name__)
class BoswatchModule(Module):
class BoswatchModuleBase(ModuleBase):
"""!Description of the Module"""
def __init__(self, config):
"""!Do not change anything here!"""