(self)
Set up our borg environment
Set up our borg environment
Set up our borg environment
def prepare_attributes(self):
        """Set up our borg environment"""
        if self.loaded is None:
            self.loaded = False
        if self.whined is None:
            self.whined = False
        if self.sections is None:
            self.sections = ['global_config', 'keybindings', 'profiles',
                             'layouts', 'plugins']
        if self.global_config is None:
            self.global_config = copy(DEFAULTS['global_config'])
        if self.profiles is None:
            self.profiles = {}
            self.profiles['default'] = copy(DEFAULTS['profiles']['default'])
        if self.keybindings is None:
            self.keybindings = copy(DEFAULTS['keybindings'])
        if self.plugins is None:
            self.plugins = {}
        if self.layouts is None:
            self.layouts = {}
            for layout in DEFAULTS['layouts']:
                self.layouts[layout] = copy(DEFAULTS['layouts'][layout])
def prepare_attributes ( self ) : if self . loaded is None : self . loaded = False if self . whined is None : self . whined = False if self . sections is None : self . sections = [ 'global_config' , 'keybindings' , 'profiles' , 'layouts' , 'plugins' ] if self . global_config is None : self . global_config = copy ( DEFAULTS [ 'global_config' ] ) if self . profiles is None : self . profiles = { } self . profiles [ 'default' ] = copy ( DEFAULTS [ 'profiles' ] [ 'default' ] ) if self . keybindings is None : self . keybindings = copy ( DEFAULTS [ 'keybindings' ] ) if self . plugins is None : self . plugins = { } if self . layouts is None : self . layouts = { } for layout in DEFAULTS [ 'layouts' ] : self . layouts [ layout ] = copy ( DEFAULTS [ 'layouts' ] [ layout ] )