def set_options(self, **opt_dict): """ Pass a dictionary with options """ if self.options is None: self.options = options_from_dictionary(**opt_dict) else: self.options.update(options_from_dictionary(**opt_dict))
def set_options(self, **opt_dict): self._options = options_from_dictionary(**opt_dict)