Package node_manager_fkie :: Module history' :: Class History
[frames] | no frames]

Class History

source code

python_qt_binding.QtCore.QObject --+
                                   |
                                  History

Instance Methods
 
__init__(self) source code
 
storeAll(self) source code
 
cachedParamValues(self, key) source code
 
addParamCache(self, key, value) source code
 
removeParamCache(self, key, value) source code
dict(str(name):[str(value), ...], ...)
loadCache(self, history_file)
Loads the content of the given file and return it as cache.
source code
 
storeCache(self, history_file, cache, history_len)
Stores the cache to a file.
source code
Class Variables
  PARAM_CACHE = dict()
the cache is used to store and recover the value for last entered parameter in parameter dialog.
Method Details

loadCache(self, history_file)

source code 

Loads the content of the given file and return it as cache.

Parameters:
  • history_file (str) - the name of the history file
Returns: dict(str(name):[str(value), ...], ...)
the dictionary with arguments

storeCache(self, history_file, cache, history_len)

source code 

Stores the cache to a file.

Parameters:
  • history_file (str) - the name of the history file
  • cache (dict) - the dictionary with values
  • history_len (int) - the maximal count of value for a key