]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Minor changes
authorFrank Brehm <frank@brehm-online.com>
Thu, 24 Mar 2022 17:41:18 +0000 (18:41 +0100)
committerFrank Brehm <frank@brehm-online.com>
Thu, 24 Mar 2022 17:41:18 +0000 (18:41 +0100)
lib/pp_admintools/mail_config.py
lib/pp_admintools/pdns_app.py

index df4709e05acdeca24dc4eb44a35e0f1f4341e44a..eb9e69dc33a20c89aac1f634f5b027fef0d32237 100644 (file)
@@ -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:
index 97fe1350282e3f09e5bd627545a2a1e30aeda3d1..61f01438a2841d43e3592c597b84ddc76c9e03dc 100644 (file)
@@ -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.
     """