From 59d2f7cac4708bb665124a07f0f7ad2dcc7f0ebd Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 24 Mar 2022 18:41:18 +0100 Subject: [PATCH] Minor changes --- lib/pp_admintools/mail_config.py | 6 +++--- lib/pp_admintools/pdns_app.py | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/pp_admintools/mail_config.py b/lib/pp_admintools/mail_config.py index df4709e..eb9e69d 100644 --- a/lib/pp_admintools/mail_config.py +++ b/lib/pp_admintools/mail_config.py @@ -31,7 +31,7 @@ from .mailaddress import MailAddress from .xlate import XLATOR -__version__ = '0.1.0' +__version__ = '0.1.1' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -80,7 +80,7 @@ class MailConfiguration(BaseMultiConfig): self, appname=None, verbose=0, version=__version__, base_dir=None, append_appname_to_stems=True, additional_stems=None, config_dir=DEFAULT_CONFIG_DIR, additional_config_file=None, additional_cfgdirs=None, encoding=DEFAULT_ENCODING, - use_chardet=True, initialized=False): + ensure_privacy=False, use_chardet=True, initialized=False): add_stems = [] if additional_stems: @@ -108,7 +108,7 @@ class MailConfiguration(BaseMultiConfig): append_appname_to_stems=append_appname_to_stems, config_dir=config_dir, additional_stems=add_stems, additional_config_file=additional_config_file, additional_cfgdirs=additional_cfgdirs, encoding=encoding, use_chardet=use_chardet, - ensure_privacy=True, initialized=False, + ensure_privacy=ensure_privacy, initialized=False, ) if initialized: diff --git a/lib/pp_admintools/pdns_app.py b/lib/pp_admintools/pdns_app.py index 97fe135..61f0143 100644 --- a/lib/pp_admintools/pdns_app.py +++ b/lib/pp_admintools/pdns_app.py @@ -3,7 +3,7 @@ """ @author: Frank Brehm @contact: frank.brehm@pixelpark.com -@copyright: © 2021 by Frank Brehm, Berlin +@copyright: © 2022 by Frank Brehm, Berlin @summary: The module for a application object related to PowerDNS. """ from __future__ import absolute_import @@ -28,11 +28,13 @@ from fb_pdnstools.server import PowerDNSServer from fb_pdnstools.errors import PDNSApiNotFoundError from fb_pdnstools.errors import PDNSApiValidationError -from .cfg_app import PpCfgAppError, PpConfigApplication +from fb_tools.errors import FbCfgAppError + +from fb_tools.cfg_app import FbConfigApplication from .xlate import XLATOR -__version__ = '0.7.1' +__version__ = '0.8.0' LOG = logging.getLogger(__name__) _LIBRARY_NAME = "pp-pdns-api-client" @@ -40,14 +42,14 @@ _ = XLATOR.gettext # ============================================================================= -class PpPDNSAppError(PpCfgAppError): +class PpPDNSAppError(FbCfgAppError): """Base error class for all exceptions happened during execution this configured application""" pass # ============================================================================= -class PpPDNSApplication(PpConfigApplication): +class PpPDNSApplication(FbConfigApplication): """ Class for configured application objects related to PowerDNS. """ -- 2.39.5