Beispiel #1
0
class Recherche:
    """
    Class Recherche
    Modele representation of HTTP URL
    """

    _instance = None
    my_recherche = None
    def __new__(cls):
        if not cls._instance:
            cls._instance = object.__new__(cls)
        return cls._instance

    def __init__(self, data=""):
        """
        Comments
        """
        if not self.my_recherche:
            self.my_recherche = O_Recherche(data)

    def add_param(self, url):
        """
        Comments
        """
        self.my_recherche.set(url)
Beispiel #2
0
 def __init__(self, data=""):
     """
     Comments
     """
     if not self.my_recherche:
         self.my_recherche = O_Recherche(data)