exactonline/storage/base.py
def get_or_set_default(self, section, option, value):
        """
        Base method to fetch values and to set defaults in case they
        don't exist.
        """
        try:
            ret = self.get(section, option)
        except MissingSetting:
            self.set(section, option, value)
            ret = value

        return ret
def get_or_set_default(self, section, option, value):
        try:
            ret = self.get(section, option)
        except MissingSetting:
            self.set(section, option, value)
            ret = value

        return ret
def get_or_set_default ( self , section , option , value ) : try : ret = self . get ( section , option ) except MissingSetting : self . set ( section , option , value ) ret = value return ret
Base method to fetch values and to set defaults in case they
        don't exist.
Base method to fetch values and to set defaults in case they don t exist .