Package peppy :: Package lib :: Module userparams :: Class GlobalPrefs
[frames] | no frames]

Class GlobalPrefs

      object --+    
               |    
debug.debugmixin --+
                   |
                  GlobalPrefs

Instance Methods

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods

Inherited from debug.debugmixin: dprint

Static Methods
 
setDefaults(defs)
Set system defaults to the dict of dicts.
 
addHierarchy(leaf, classhier, namehier)
 
setupHierarchyDefaults(klasshier)
 
findParam(section, option)
 
readConfig(fh)
 
convertSection(section)
 
convertConfig()
 
isUserConfigChanged()
 
configToText()
Class Variables
  debuglevel = 0
  default = {'BitmapScroller': {}, 'BlankMode': {'column_number_...
  params = {'BitmapScroller': {}, 'BlankMode': {'column_number_o...
  seen = {'BlankMode': True, 'BufferListMode': True, 'BufferList...
  convert_already_seen = {}
  needs_conversion = {}
  user = {'BitmapScroller': {}, 'BlankMode': {}, 'BraceHighlight...
  name_hierarchy = {'BlankMode': ['BlankMode', 'MajorMode'], 'Bu...
  class_hierarchy = {'BlankMode': [<class 'peppy.buffers.BlankMo...
  magic_conversion = True
Properties

Inherited from object: __class__

Method Details

setDefaults(defs)
Static Method

 

Set system defaults to the dict of dicts.

The GlobalPrefs.default values are used as failsafe defaults -- they are only used if the user defaults aren't found.

The outer layer dict is class name, the inner dict has name/value pairs. Note that the value's type should match with the default_classprefs, or there'll be trouble.


Class Variable Details

default

Value:
{'BitmapScroller': {},
 'BlankMode': {'column_number_offset': 1,
               'line_number_offset': 1,
               'minor_modes': ''},
 'BraceHighlightMixin': {},
 'BufferListMode': {'column_number_offset': 1,
                    'line_number_offset': 1,
                    'minor_modes': ''},
...

params

Value:
{}

seen

Value:
{'BlankMode': True,
 'BufferListMode': True,
 'BufferListModePlugin': True,
 'CMode': True,
 'CModePlugin': True,
 'CPlusPlusMode': True,
 'CPlusPlusModePlugin': True,
 'ChangeLogMode': True,
...

user

Value:
{'BitmapScroller': {},
 'BlankMode': {},
 'BraceHighlightMixin': {},
 'BufferListMode': {},
 'BufferListModePlugin': {},
 'CMode': {},
 'CModePlugin': {},
 'CPlusPlusMode': {},
...

name_hierarchy

Value:
{'BlankMode': ['BlankMode', 'MajorMode'],
 'BufferListMode': ['BufferListMode',
                    'ColumnAutoSizeMixin',
                    'MajorMode'],
 'BufferListModePlugin': ['BufferListModePlugin',
                          'IPeppyPlugin',
                          'IPlugin'],
 'CMode': ['CMode', 'SimpleCLikeFoldFunctionMatchMixin', 'FundamentalM\
...

class_hierarchy

Value:
{'BlankMode': [<class 'peppy.buffers.BlankMode'>,
               <class 'peppy.major.MajorMode'>],
 'BufferListMode': [<class 'peppy.plugins.buffer_list_mode.BufferListM\
ode'>,
                    <class 'peppy.lib.column_autosize.ColumnAutoSizeMi\
xin'>,
                    <class 'peppy.major.MajorMode'>],
 'BufferListModePlugin': [<class 'peppy.plugins.buffer_list_mode.Buffe\
...