PyFunceble/generate.py
def _prints_status_screen(self):
        """
        Logic behind the printing (on screen) when generating status file.
        """

        if not PyFunceble.CONFIGURATION["quiet"]:
            # The quiet mode is not activated.

            if PyFunceble.CONFIGURATION["less"]:
                # We have to print less information.

                # We initiate the data to print.
                to_print = [
                    self.tested,
                    self.domain_status,
                    PyFunceble.INTERN["http_code"],
                ]

                if not PyFunceble.HTTP_CODE["active"]:
                    # The http status code is not activated.

                    # We replace the last element to print with
                    # the source.
                    to_print[-1] = self.source

                # We print the informations on screen.
                Prints(to_print, "Less").data()
            else:
                # We have to print all informations on screen.

                if PyFunceble.HTTP_CODE["active"]:
                    # The http status code extraction is activated.

                    # We initiate the data to print.
                    data_to_print = [
                        self.tested,
                        self.domain_status,
                        self.expiration_date,
                        self.source,
                        PyFunceble.INTERN["http_code"],
                    ]
                else:
                    # The http status code extraction is not activated.

                    # We initiate the data to print.
                    data_to_print = [
                        self.tested,
                        self.domain_status,
                        self.expiration_date,
                        self.source,
                        PyFunceble.CURRENT_TIME,
                    ]

                # We print the information on screen.
                Prints(data_to_print, "Generic").data()
def _prints_status_screen(self):
        """
        Logic behind the printing (on screen) when generating status file.
        """

        if not PyFunceble.CONFIGURATION["quiet"]:
            # The quiet mode is not activated.

            if PyFunceble.CONFIGURATION["less"]:
                # We have to print less information.

                # We initiate the data to print.
                to_print = [
                    self.tested,
                    self.domain_status,
                    PyFunceble.INTERN["http_code"],
                ]

                if not PyFunceble.HTTP_CODE["active"]:
                    # The http status code is not activated.

                    # We replace the last element to print with
                    # the source.
                    to_print[-1] = self.source

                # We print the informations on screen.
                Prints(to_print, "Less").data()
            else:
                # We have to print all informations on screen.

                if PyFunceble.HTTP_CODE["active"]:
                    # The http status code extraction is activated.

                    # We initiate the data to print.
                    data_to_print = [
                        self.tested,
                        self.domain_status,
                        self.expiration_date,
                        self.source,
                        PyFunceble.INTERN["http_code"],
                    ]
                else:
                    # The http status code extraction is not activated.

                    # We initiate the data to print.
                    data_to_print = [
                        self.tested,
                        self.domain_status,
                        self.expiration_date,
                        self.source,
                        PyFunceble.CURRENT_TIME,
                    ]

                # We print the information on screen.
                Prints(data_to_print, "Generic").data()
def _prints_status_screen ( self ) : if not PyFunceble . CONFIGURATION [ "quiet" ] : # The quiet mode is not activated. if PyFunceble . CONFIGURATION [ "less" ] : # We have to print less information. # We initiate the data to print. to_print = [ self . tested , self . domain_status , PyFunceble . INTERN [ "http_code" ] , ] if not PyFunceble . HTTP_CODE [ "active" ] : # The http status code is not activated. # We replace the last element to print with # the source. to_print [ - 1 ] = self . source # We print the informations on screen. Prints ( to_print , "Less" ) . data ( ) else : # We have to print all informations on screen. if PyFunceble . HTTP_CODE [ "active" ] : # The http status code extraction is activated. # We initiate the data to print. data_to_print = [ self . tested , self . domain_status , self . expiration_date , self . source , PyFunceble . INTERN [ "http_code" ] , ] else : # The http status code extraction is not activated. # We initiate the data to print. data_to_print = [ self . tested , self . domain_status , self . expiration_date , self . source , PyFunceble . CURRENT_TIME , ] # We print the information on screen. Prints ( data_to_print , "Generic" ) . data ( )
Logic behind the printing (on screen) when generating status file.
Logic behind the printing ( on screen ) when generating status file .