Logo Search packages:      
Sourcecode: sabnzbdplus version File versions

def sabnzbd::utils::configobj::Section::restore_default (   self,
  key 
)

Restore (and return) default value for the specified key.

This method will only work for a ConfigObj that was created
with a configspec and has been validated.

If there is no default value for this key, ``KeyError`` is raised.

Definition at line 1106 of file configobj.py.

01106                                   :
        """
        Restore (and return) default value for the specified key.
        
        This method will only work for a ConfigObj that was created
        with a configspec and has been validated.
        
        If there is no default value for this key, ``KeyError`` is raised.
        """
        default = self.default_values[key]
        dict.__setitem__(self, key, default)
        if key not in self.defaults:
            self.defaults.append(key)
        return default

    
    def restore_defaults(self):


Generated by  Doxygen 1.6.0   Back to index