Exemplo n.º 1
0
    def __init__(self):
        BaseException.__init__(self)
        Library.__init__(self)
        self.init_library_int(common.LOADER)

        # This flag represents exception's critical state.
        self.__critical = 0
Exemplo n.º 2
0
    def __init__(self):
        Library.__init__(self)

        self.__commands = {}

        self.__supported_chanmodes = []
        self.__supported_umodes = []
Exemplo n.º 3
0
    def __init__(self):
        Library.__init__(self)

        # Temporary configuration settings
        self.__temp_settings = {}
        # Persistent configuration.
        # Can be obtained from files, or database.
        self.__config = {}
Exemplo n.º 4
0
    def __init__(self):
        Library.__init__(self)
        asyncio.Protocol.__init__(self)

        # Connection-related data.
        self.__data = {}

        self.__just_connected = 1
Exemplo n.º 5
0
    def __init__(self):
        Library.__init__(self)
        # Rooms list.
        self.__rooms = {}
        # Rooms types we accept.
        self.__rooms_types = {}

        # Threading lock :).
        self.__lock = threading.Lock()
Exemplo n.º 6
0
    def __init__(self):
        Library.__init__(self)
        threading.Thread.__init__(self)

        # XMPP mapped nicks.
        # Format:
        # {"nickname": XMPPClient connection}
        self.__xmpp_nicks = {}

        # Shutdown marker.
        self.__shutdown = False
Exemplo n.º 7
0
    def __init__(self, loader=None):
        Library.__init__(self)
        MethodView.__init__(self)

        self.__loader = loader
        self.__bridge_username = None
        self.log = None
        self.__queue = None
        self.__rooms = None
        self.__config = None
        self.__rooms_types = None
        self.__rooms = None
        self.config = None
        self.__bridge_username = None
Exemplo n.º 8
0
    def __init__(self):
        Library.__init__(self)
        threading.Thread.__init__(self)

        # Flask App.
        self.__app = Flask("matrix-xmpp-bridge")

        # Joined rooms list.
        self.__joined = {}

        # Markdown formatter.
        self.__markdowner = None

        # Shutdown marker.
        self.__shutdown = False
Exemplo n.º 9
0
    def __init__(self):
        Library.__init__(self)
        # Internal variables.
        self.__vars = {
            # Was file successfully opened for writing?
            "file_opened": False,
            "OS": platform.system(),
            # Skip writing logging data into dictionary?
            "skip_complete_log": 0,
            # We will think that this is a time when we started application.
            # It will be pushed to temporary vars dict.
            # ToDo: make it be set in main module.
            "startdate": datetime.datetime.now(),
        }

        self.__vars["startdate_formatted"] = self.__vars["startdate"].strftime(
            "%Y%m%d_%H%M%S")

        self.__callbacks = {}
        self.__complete_log = OrderedDict()
        self.__log_sequence = 0
        # Default debug level?
        self.__debug_level = 0
Exemplo n.º 10
0
 def __init__(self):
     Library.__init__(self)
     QDialog.__init__(self)
Exemplo n.º 11
0
 def __init__(self):
     Library.__init__(self)
     self.__queue = []
     self.__lock = threading.Lock()
Exemplo n.º 12
0
    def __init__(self):
        Library.__init__(self)

        self.__proto = None
        self.__address = None
        self.__port = None
Exemplo n.º 13
0
    def __init__(self, loader = None):
        Library.__init__(self)
        MethodView.__init__(self)

        self.loader = loader
        self.log = None
Exemplo n.º 14
0
    def __init__(self):
        Library.__init__(self)

        self.__connections = {}
Exemplo n.º 15
0
 def __init__(self):
     QWidget.__init__(self)
     Library.__init__(self)
Exemplo n.º 16
0
    def __init__(self):
        Library.__init__(self)

        self.__reply_codes = {}
Exemplo n.º 17
0
 def __init__(self):
     Library.__init__(self)
Exemplo n.º 18
0
    def __init__(self):
        Library.__init__(self)

        self.__events = OrderedDict()
Exemplo n.º 19
0
    def __init__(self):
        Library.__init__(self)

        self.__tasks = {}

        self.timer_loop = asyncio.get_event_loop()
Exemplo n.º 20
0
    def __init__(self):
        Library.__init__(self)

        self.__channels = {}
Exemplo n.º 21
0
 def __init__(self):
     Library.__init__(self)
     self.__commands = {}
Exemplo n.º 22
0
 def __init__(self):
     Library.__init__(self)
     QWidget.__init__(self)