from .. import pp
from ..xlate import XLATOR
-__version__ = '0.3.0'
+__version__ = '0.3.1'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
"""Initialize the MirrorLdapConfiguration object."""
self.entries_keep = {}
self.transform = {}
- self.entries_mofify = {}
+ self.entries_modify = {}
self.action_list = format_list(self.valid_modify_actions, do_repr=True)
# -------------------------------------------------------------------------
def _set_modify_action(self, inst_name, dn_pattern, action_lc, entry, value):
- if inst_name not in self.entries_mofify:
- self.entries_mofify[inst_name] = {}
- if dn_pattern not in self.entries_mofify[inst_name]:
- self.entries_mofify[inst_name][dn_pattern] = {}
- if action_lc not in self.entries_mofify[inst_name][dn_pattern]:
- self.entries_mofify[inst_name][dn_pattern][action_lc] = {}
- if entry not in self.entries_mofify[inst_name][dn_pattern][action_lc]:
- self.entries_mofify[inst_name][dn_pattern][action_lc][entry] = None
+ if inst_name not in self.entries_modify:
+ self.entries_modify[inst_name] = {}
+ if dn_pattern not in self.entries_modify[inst_name]:
+ self.entries_modify[inst_name][dn_pattern] = {}
+ if action_lc not in self.entries_modify[inst_name][dn_pattern]:
+ self.entries_modify[inst_name][dn_pattern][action_lc] = {}
+ if entry not in self.entries_modify[inst_name][dn_pattern][action_lc]:
+ self.entries_modify[inst_name][dn_pattern][action_lc][entry] = None
if value is not None:
- if self.entries_mofify[inst_name][dn_pattern][action_lc][entry] is None:
- self.entries_mofify[inst_name][dn_pattern][action_lc][entry] = []
- if value not in self.entries_mofify[inst_name][dn_pattern][action_lc][entry]:
- self.entries_mofify[inst_name][dn_pattern][action_lc][entry].append(value)
+ if self.entries_modify[inst_name][dn_pattern][action_lc][entry] is None:
+ self.entries_modify[inst_name][dn_pattern][action_lc][entry] = []
+ if value not in self.entries_modify[inst_name][dn_pattern][action_lc][entry]:
+ self.entries_modify[inst_name][dn_pattern][action_lc][entry].append(value)
# =============================================================================