from .ldap import BaseLdapApplication
from ..xlate import XLATOR
-__version__ = '0.6.5'
+__version__ = '0.7.0'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
"The last modification time of {db!r} and {va!r} are "
"okay.").format(db=str(db_file), va=str(va_file)))
+ # -------------------------------------------------------------------------
+ def read_local_virtual_aliases(self):
+ """Reading virtual alias files."""
+ LOG.info(_("Reading in virtual alias files ..."))
+
+ self.existing_aliases = []
+
+ for va_file in self.virtaliases_files:
+ self.read_virtual_alias_file(va_file)
+
+ # -------------------------------------------------------------------------
+ def read_virtual_alias_file(self, va_file):
+ """Reading virtual aliases from given file."""
+ LOG.info(_("Reading in from virtual alias file {!r} ...").format(str(va_file)))
+
# -------------------------------------------------------------------------
def _run(self):
- LOG.info('And here we go ...')
+ self.read_local_virtual_aliases()
# =============================================================================