Update deprecation warnings
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 6 Apr 2022 10:44:17 +0000 (12:44 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 27 Apr 2022 09:02:30 +0000 (11:02 +0200)
Parts of arnied_wrapper will have to stay. However, simple_cnf,
mk_config and cnfline are to be removed, too.

Also make other warnings a proper reST note.

13 files changed:
src/arnied_wrapper.py
src/cnfline/build_cnfvar.py
src/cnfline/build_provider.py
src/cnfline/build_proxy_accesslist.py
src/cnfline/build_proxy_profile.py
src/cnfline/build_user.py
src/cnfline/build_vpnconn.py
src/cnfline/cnfline.py
src/cnfline/configure_proxy_antivirus.py
src/cnfline/configure_webfilter.py
src/cnfvar_old.py
src/mk_config.py
src/simple_cnf.py

index cf51f16..e033aaf 100644 (file)
@@ -24,8 +24,10 @@ SUMMARY
 ------------------------------------------------------
 Guest utility to wrap arnied related functionality through python calls.
 
-DEPRECATED! Please do not extend this or add new uses of this module, use
-:py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar` instead!
+.. note:: Partially DEPRECATED! Use :py:mod:`pyi2ncommon.arnied_api` or
+          :py:mod:`pyi2ncommon.cnfvar` whenever possible. In particluar, do not
+          use or extend functionality regarding configuration (`get_cnf`,
+          `set_cnf`).
 
 Copyright: Intra2net AG
 
index 064bf41..8402f52 100644 (file)
 #
 # Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
-"""Basic functions for on-the-fly arnied cnf-var generator"""
+"""Basic functions for on-the-fly arnied cnf-var generator.
+
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
+"""
 
 from .cnfline import CnfLine
 
index 3dab464..db051a1 100644 (file)
 
 """
 Create provider profiles.
+
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
 """
 
 from . import build_cnfvar
index c73a5d3..1b0a838 100644 (file)
 #
 # Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
+"""
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
+"""
+
 from .build_cnfvar import BuildCnfVar
 """Class to create proxy accesslists on the fly"""
 
index 7a821a2..93c9ccf 100644 (file)
 #
 # Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
+"""
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
+"""
+
 from .build_cnfvar import BuildCnfVar
 """Class to create proxy profiles on the fly"""
 
index d4910d1..3daf729 100644 (file)
 #
 # Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
+"""
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
+"""
+
 from .build_cnfvar import BuildCnfVar
 """Class to create user cnfvar objects on the fly"""
 
index f7af569..5037ab2 100644 (file)
 
 """
 Create vpn connections.
+
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
 """
 
 from . import build_cnfvar
index 8dda1fb..fa25136 100644 (file)
 #
 # Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
+"""
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
+"""
+
 class CnfLine(object):
     """Represents an arnied cnfline"""
 
index 7f5e95c..1a97ccf 100644 (file)
 #
 # Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
+"""
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
+"""
+
 from .build_cnfvar import BuildCnfVar
 """Class to configure the proxy antivirus cnfvars on the fly"""
 
index 905039f..3aa73f0 100644 (file)
 #
 # Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
+"""
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
+"""
+
 from .build_cnfvar import BuildCnfVar
 """Class to configure the webfilter cnfvars on the fly"""
 
index 29b7629..75eff5e 100644 (file)
@@ -26,8 +26,9 @@ summary
 -------------------------------------------------------------------------------
 Represent CNF_VARs as recursive structures.
 
-DEPRECATED! Please do not extend this or add new uses of this module, use
-:py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar` instead!
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
 
 Copyright: 2014-2017 Intra2net AG
 License:   GPLv2+
index 4bd44bc..47860d9 100644 (file)
@@ -24,6 +24,10 @@ SUMMARY
 ------------------------------------------------------
 Utility for one-step dynamic cnfvar configuration.
 
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
+
 Copyright: Intra2net AG
 
 
index f3a48e9..572866e 100644 (file)
@@ -24,8 +24,9 @@ SUMMARY
 ------------------------------------------------------
 Read / write / merge guest cnf var sets, even on host.
 
-DEPRECATED! Please do not extend this or add new uses of this module, use
-:py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar` instead!
+.. note:: DEPRECATED! Please do not extend this or add new uses of this module,
+          use :py:mod:`pyi2ncommon.arnied_api` or :py:mod:`pyi2ncommon.cnfvar`
+          instead!
 
 Copyright: Intra2net AG