Package easyLDAP :: Module easyLDAP_class_cache :: Class easyLDAP_cache_history
[frames] | no frames]

Class easyLDAP_cache_history

source code

Known Subclasses:

Instance Methods
 
__init__(self, config_defaults={'AdminRDN': 'cn=admin', 'AutomountRDN': 'ou=automount', 'Base...) source code
 
__deepcopy__(self, memo)
Creates a deepcopy of the easyLDAP cache class, especially of the undo/redo stack.
source code
 
clear_cache_history(thisClass)
clears the easyLDAP cache.
source code
 
resize_cache_history(thisClass, mySIZE)
sets a new size for the easyLDAP undo stack.
source code
 
undo(thisClass)
undoes the last modification to the easyLDAP object cache.
source code
 
redo(thisClass)
redoes the former modification to the easyLDAP object cache (if any).
source code
 
enable_cache_history(self) source code
 
disable_cache_history(self) source code
Class Variables
  ldap_cachetree = None
  ldap_cache_undo_history = []
  ldap_cache_redo_history = []
  ldap_cache_history_size = 50
  use_cache_history = True
Method Details

clear_cache_history(thisClass)

source code 

clears the easyLDAP cache. This method can be used to completely change an existing LDAP object or in order to erase the object entirely from the LDAP directory. Changes will, of course, only be synced to the LDAP directory, when the method thisClass.flush_cache() is called.

resize_cache_history(thisClass, mySIZE)

source code 

sets a new size for the easyLDAP undo stack. If the new given stack size mySIZE is less than the former one, the undo stack will be reduced with the next thisClass.push() operation.