# from .config import ConfigError, BaseConfiguration
from fb_tools.multi_config import DEFAULT_ENCODING
-from . import __version__ as GLOBAL_VERSION
-from . import MAX_TIMEOUT, MAX_PORT_NUMBER
-
from .pdns_config import PdnsConfigError, PdnsConfiguration
from .mail_config import DEFAULT_CONFIG_DIR
from .xlate import XLATOR
-__version__ = '0.1.0'
+__version__ = '0.1.1'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
return set()
return addr_list
-
# -------------------------------------------------------------------------
- def _eval_named_rndc(self, iname, section):
+ def _eval_named_rndc(self, iname, key, section):
val = section[key].strip()
if not val:
return
path = Path(val)
- if not path.is_absolute()
+ if not path.is_absolute():
msg = _("The path to {what} must be an absolute path, found {path!r}.")
msg = msg.format(what='rndc', path=val)
if self.raise_on_error:
self.rndc = path
# -------------------------------------------------------------------------
- def _eval_named_systemctl(self, iname, section):
+ def _eval_named_systemctl(self, iname, key, section):
val = section[key].strip()
if not val:
return
path = Path(val)
- if not path.is_absolute()
+ if not path.is_absolute():
msg = _("The path to {what} must be an absolute path, found {path!r}.")
msg = msg.format(what='systemctl', path=val)
if self.raise_on_error:
self.systemctl = path
# -------------------------------------------------------------------------
- def _eval_named_configdir(self, iname, section):
+ def _eval_named_configdir(self, iname, key, section):
val = section[key].strip()
if not val:
what = _("the named config directory")
path = Path(val)
- if not path.is_absolute()
+ if not path.is_absolute():
msg = _("The path to {what} must be an absolute path, found {path!r}.")
msg = msg.format(what=what, path=val)
if self.raise_on_error:
self.named_config_dir = path
# -------------------------------------------------------------------------
- def _eval_named_configfile(self, iname, section):
+ def _eval_named_configfile(self, iname, key, section):
val = section[key].strip()
if not val:
what = _("the named config file for zones")
path = Path(val)
- if path.is_absolute()
+ if path.is_absolute():
msg = _("The path to {what} must not be an absolute path, found {path!r}.")
msg = msg.format(what=what, path=val)
if self.raise_on_error:
self.named_zones_cfg_file = path
# -------------------------------------------------------------------------
- def _eval_named_basedir(self, iname, section):
+ def _eval_named_basedir(self, iname, key, section):
val = section[key].strip()
if not val:
what = _("the named base directory")
path = Path(val)
- if not path.is_absolute()
+ if not path.is_absolute():
msg = _("The path to {what} must be an absolute path, found {path!r}.")
msg = msg.format(what=what, path=val)
if self.raise_on_error:
self.named_basedir = path
# -------------------------------------------------------------------------
- def _eval_named_slavedir(self, iname, section):
+ def _eval_named_slavedir(self, iname, key, section):
val = section[key].strip()
if not val:
what = _("the directory for slave zones of named")
path = Path(val)
- if path.is_absolute()
+ if path.is_absolute():
msg = _("The path to {what} must not be an absolute path, found {path!r}.")
msg = msg.format(what=what, path=val)
if self.raise_on_error:
self.named_slavedir = path
# -------------------------------------------------------------------------
- def _eval_named_checkconf(self, iname, section):
+ def _eval_named_checkconf(self, iname, key, section):
val = section[key].strip()
if not val:
what = "named-checkconf"
path = Path(val)
- if not path.is_absolute()
+ if not path.is_absolute():
msg = _("The path to {what} must be an absolute path, found {path!r}.")
msg = msg.format(what=what, path=val)
if self.raise_on_error:
self.named_checkconf = path
# -------------------------------------------------------------------------
- def _eval_named_internal(self, iname, section):
+ def _eval_named_internal(self, iname, key, section):
val = section[key]
if val is None:
self.named_internal = val
# -------------------------------------------------------------------------
- def _eval_named_listen_v6(self, iname, section):
+ def _eval_named_listen_v6(self, iname, key, section):
val = section[key]
if val is None: