示例#1
0
class Parametre:
    """
    Class Parameters
    Modele representation of HTTP REQUEST PARAMETERS
    """

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

    def __init__(self, data={}):
        """
        Comments
        """
        if not self.myParam:
            self.myParam = O_Parametre(data)

    def add_param(self, name, value):
        """
        Comments
        """
        self.myParam.set(name, value)

    def del_param(self, index):
        """
        docstring for delParam
        """
        self.myParam.delete(index)
示例#2
0
 def __init__(self, data={}):
     """
     Comments
     """
     if not self.myParam:
         self.myParam = O_Parametre(data)