Пример #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
Пример #2
0
    def __init__(self):
        Library.__init__(self)

        self.__commands = {}

        self.__supported_chanmodes = []
        self.__supported_umodes = []
Пример #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 = {}
Пример #4
0
    def __init__(self):
        Library.__init__(self)
        asyncio.Protocol.__init__(self)

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

        self.__just_connected = 1
Пример #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()
Пример #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
Пример #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
Пример #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
Пример #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
Пример #10
0
 def __init__(self):
     Library.__init__(self)
     QDialog.__init__(self)
Пример #11
0
 def __init__(self):
     Library.__init__(self)
     self.__queue = []
     self.__lock = threading.Lock()
Пример #12
0
    def __init__(self):
        Library.__init__(self)

        self.__proto = None
        self.__address = None
        self.__port = None
Пример #13
0
    def __init__(self, loader = None):
        Library.__init__(self)
        MethodView.__init__(self)

        self.loader = loader
        self.log = None
Пример #14
0
    def __init__(self):
        Library.__init__(self)

        self.__connections = {}
Пример #15
0
 def __init__(self):
     QWidget.__init__(self)
     Library.__init__(self)
Пример #16
0
    def __init__(self):
        Library.__init__(self)

        self.__reply_codes = {}
Пример #17
0
 def __init__(self):
     Library.__init__(self)
Пример #18
0
    def __init__(self):
        Library.__init__(self)

        self.__events = OrderedDict()
Пример #19
0
    def __init__(self):
        Library.__init__(self)

        self.__tasks = {}

        self.timer_loop = asyncio.get_event_loop()
Пример #20
0
    def __init__(self):
        Library.__init__(self)

        self.__channels = {}
Пример #21
0
 def __init__(self):
     Library.__init__(self)
     self.__commands = {}
Пример #22
0
 def __init__(self):
     Library.__init__(self)
     QWidget.__init__(self)