def set_if_empty ( self , param , default ) : if not self . has ( param ) : self . set ( param , default )
set a default value if null python
Set the parameter to the default if it doesn t exist
def set_if_empty(self, param, default):
        """ Set the parameter to the default if it doesn't exist """
        if not self.has(param):
            self.set(param, default)