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

Class easyLDAP_cachetree

source code

easyLDAP_cache_history --+
                         |
                        easyLDAP_cachetree

An easyLDAP_cachetree object stores and accesses the python-ldap like LDAP object dictionary.

Instance Methods
 
__init__(self, ldap_cachetree_linear_or_recursive, basedn=None, use_cache_history=True, config_defaults={'AdminRDN': 'cn=admin', 'AutomountRDN': 'ou=automount', 'Base...) source code
 
__len__(self) source code
 
__deepcopy__(self, memo)
Creates a deepcopy of the easyLDAP cache class, especially of the undo/redo stack.
source code
 
__call__(self, linear=False, retrieve_data=False) source code
 
__delitem__(self, dn) source code
 
is_ldap_cachetree(self, cachetree) source code
 
get_cachetree_basedn(self) source code
 
set_cachetree_basedn(self, new_basedn) source code
 
is_childdn_of_dn(self, child_dn, parent_dn) source code
 
is_childdn_of_cachetree_basedn(self, child_dn) source code
 
is_childdn_of_ldapserver_basedn(self, child_dn) source code
 
strip_off_dn_from_dn(self, parent_dn, child_dn) source code
 
get_cachetree(self, linear=False, retrieve_data=False, hashed=False)
retrieve_data works only on linear operations
source code
 
get_cachetree_hash(self, retrieve_data=False) source code
 
get_cachetree_pyldap(self) source code
 
get_cachetree_dnlist(self) source code
 
get_cachetree_depth(self) source code
 
get_cachetree_subtree(self, dn, deepcopy=False) source code
 
get_cachetree_parenttree(self, dn, deepcopy=False) source code
 
get_cachetree_subtree_data(self, dn) source code
 
has_dn(self, dn) source code
 
has_children(self, dn) source code
 
get_cacheobject_from_cachetree(self, object_dn)
get_cacheobject_from_cachetree('DN')
source code
 
remove_cacheobject_from_cachetree(self, object_dn) source code
 
has_parent_dn(self, dn) source code
 
new_cachetree_object(self, object_data) source code
 
del_cachesubtree_from_cachetree(self, subtree_basedn) source code
 
move_cachesubtree_in_cachetree(self, from_dn, to_dn) source code

Inherited from easyLDAP_cache_history: clear_cache_history, disable_cache_history, enable_cache_history, redo, resize_cache_history, undo

Class Variables
  ldap_server_basedn = ''
  ldap_cachetree_basedn = None

Inherited from easyLDAP_cache_history: ldap_cache_history_size, ldap_cache_redo_history, ldap_cache_undo_history, ldap_cachetree, use_cache_history

Method Details

__init__(self, ldap_cachetree_linear_or_recursive, basedn=None, use_cache_history=True, config_defaults={'AdminRDN': 'cn=admin', 'AutomountRDN': 'ou=automount', 'Base...)
(Constructor)

source code 
Overrides: easyLDAP_cache_history.__init__

__deepcopy__(self, memo)

source code 

Creates a deepcopy of the easyLDAP cache class, especially of the undo/redo stack.

Overrides: easyLDAP_cache_history.__deepcopy__
(inherited documentation)

get_cacheobject_from_cachetree(self, object_dn)

source code 

get_cacheobject_from_cachetree('DN')

returns the data of a single cache object from the cached cachetree.