Esempio n. 1
0
 def __init__(self, keep=None, idUser=None):
     self.qBase = qBase(keep)
     self.__loggerMySQL = loggerMySQL(keep, idUser)
     self.__listOfUsers = []
     self.__idUser = idUser
     self.__recUser = None
     self.__email = ''
Esempio n. 2
0
 def __init__(self, keep=None, idUser=None):
     """
     Class that write and read logging on any kind info or error of the application
     """
     self.qBase = qBase(keep)
     self.__idUser = idUser
     self.__listOfLogs = None
Esempio n. 3
0
    def __init__(self, idUser, host='localhost'):
        """
        to start the RabbitMQ server, open your terminal and type:

        export PATH=$PATH:/usr/local/opt/rabbitmq/sbin <enter>
        Rabbitmq-server <enter>

        to access management panel open your browser and type http://localhost:15672 or 5672 by default
        """

        self.connection = None
        self.channel = None
        self.__loggerNoSQL = loggerNoSQL()
        self.__idUser = idUser
        self.qBase = qBase()
        self.host = host
        self.port = 15672

        self.queueNames = [
            taskQueueName.EXCEPTION_ERROR(),
            taskQueueName.LOG_INFO(),
            taskQueueName.SEND_MAIL()
        ]

        self.testConnection()
Esempio n. 4
0
    def __init__(self, keep=None, idUser=None):
        super().__init__(keep)
        self.idInserted = 0

        self.__logger = logger()
        self.__loggerNoSQL = loggerNoSQL()
        self.__idUser = idUser
        self.__lista1 = []
        self.__recipe = None
        self.qBase = qBase()
Esempio n. 5
0
    def __init__(self):
        """
        Class that write and read logging on any kind info or error of the application
        """
        self.client = MongoClient(
            "mongodb+srv://admin:[email protected]/test?retryWrites=true&w=majority"
        )
        self.idsInserted = []

        self.__testConnection()

        self.__listOfLogs = []

        self.__logger = logger()
        self.qBase = qBase()
Esempio n. 6
0
    def __init__(self, idUser, host='localhost'):
        """
        to start the RabbitMQ server, open your terminal and type:
        
        export PATH=$PATH:/usr/local/opt/rabbitmq/sbin
        Rabbitmq-server <enter>

        to access management panel open your browser and type http://localhost:15672 by default
        """

        cnn = rabbitMQConnection(idUser, host)
        self.connection = cnn.connection
        self.channel = cnn.channel
        self.queueNames = cnn.queueNames
        del cnn

        self.__loggerNoSQL = loggerNoSQL()
        self.__idUser = idUser
        self.qBase = qBase()
Esempio n. 7
0
 def __init__(self, keep=None, idUser=None):
     self.qBase = qBase(keep)
     self.__loggerNoSQL = loggerNoSQL()
     self.__listOfUsers = []
     self.__idUser = idUser
     self.__recUser = None
Esempio n. 8
0
 def __init__(self, keep=None, idUser=None):
     self.qBase = qBase(keep)
     self.__loggerMySQL = loggerMySQL(keep, idUser)
     self.__dataChart = ''