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)
def __init__(self, data={}): """ Comments """ if not self.myParam: self.myParam = O_Parametre(data)