[X2Go-Commits] [python-x2go] 01/01: x2go/backends/*: Drop winreg backends. Never worked on them, will probably never come.

git-admin at x2go.org git-admin at x2go.org
Thu Sep 6 18:10:39 CEST 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository python-x2go.

commit a5c1537477cd70f201e9c98a116370a2ee98b0c1
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Thu Sep 6 18:09:48 2018 +0200

    x2go/backends/*: Drop winreg backends. Never worked on them, will probably never come.
---
 x2go/backends/printing/winreg.py | 77 ----------------------------------------
 x2go/backends/profiles/winreg.py | 63 --------------------------------
 x2go/backends/settings/winreg.py | 68 -----------------------------------
 x2go/defaults.py                 |  3 --
 4 files changed, 211 deletions(-)

diff --git a/x2go/backends/printing/winreg.py b/x2go/backends/printing/winreg.py
deleted file mode 100644
index a815286..0000000
--- a/x2go/backends/printing/winreg.py
+++ /dev/null
@@ -1,77 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (C) 2010-2016 by Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
-#
-# Python X2Go is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# Python X2Go is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-
-"""\
-:class:`x2go.backends.printing.winreg.X2GoClientPrinting` class is one of Python X2Go's public API classes.
-
-Retrieve an instance of this class from your :class:`x2go.client.X2GoClient` instance.
-
-Use this class in your Python X2Go based applications to access the »printing«
-configuration of your X2Go client application. The configuration is read from the MS Windows Registry.
-
-NOTE: This class is a stub class for now, as noone has been interested in working on this, so far.
-
-"""
-from builtins import object
-__NAME__ = 'x2goprint-pylib'
-
-__package__ = 'x2go.backends.printing'
-__name__    = 'x2go.backends.printing.winreg'
-
-# modules
-import copy
-
-# Python X2Go modules
-import x2go.log as log
-
-# we hide the default values from epydoc (that's why we transform them to _UNDERSCORE variables)
-from x2go.defaults import X2GO_CLIENTPRINTING_DEFAULTS as _X2GO_CLIENTPRINTING_DEFAULTS
-
-from x2go.x2go_exceptions import X2GoNotImplementedYetException
-
-class X2GoClientPrinting(object):
-    """\
-    :class:`x2go.backends.printing.winreg.X2GoClientPrinting` provides access to the Windows registry
-    based configuration of the X2Go client printing setup.
-
-    An instance of :class:`x2go.backends.printing.winreg.X2GoClientPrinting` is created on each incoming
-    print job. This facilitates that on every print job the print action for this job is derived from the
-    »printing« configuration file.
-
-    Thus, changes on the file are active for the next incoming print job.
-
-
-    """
-    _print_action = None
-    defaultValues = copy.deepcopy(_X2GO_CLIENTPRINTING_DEFAULTS)
-
-    def __init__(self, defaults=None, logger=None, loglevel=log.loglevel_DEFAULT):
-        """\
-        :param defaults: a cascaded Python dicitionary structure with ini file defaults (to override
-            Python X2Go's hard coded defaults in :mod:`x2go.defaults`
-        :type defaults: ``dict``
-        :param logger: you can pass an :class:`x2go.log.X2GoLogger` object to the
-            :class:`x2go.printactions.X2GoPrintAction` constructor
-        :type logger: ``obj``
-        :param loglevel: if no :class:`x2go.log.X2GoLogger` object has been supplied a new one will be
-            constructed with the given loglevel
-        :type loglevel: ``int``
-
-        """
-        raise X2GoNotImplementedYetException('WINREG backend support is not implemented yet')
diff --git a/x2go/backends/profiles/winreg.py b/x2go/backends/profiles/winreg.py
deleted file mode 100644
index 45a795a..0000000
--- a/x2go/backends/profiles/winreg.py
+++ /dev/null
@@ -1,63 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (C) 2010-2016 by Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
-#
-# Python X2Go is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# Python X2Go is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-
-"""\
-:class:`x2go.backends.profiles.winreg.X2GoSessionProfiles` class - managing X2Go Client session profiles stored in MS Windows Registry.
-
-:class:`x2go.backends.profiles.winreg.X2GoSessionProfiles` is a public API class. Use this class in your Python X2Go based
-applications.
-
-NOTE: This class is a stub class for now, as noone has been interested in working on this, so far.
-
-"""
-__NAME__ = 'x2gosessionprofiles-pylib'
-
-__package__ = 'x2go.backends.profiles'
-__name__ = 'x2go.backends.profiles.winreg'
-
-# modules
-import copy
-
-# Python X2Go modules
-from x2go.defaults import X2GO_SESSIONPROFILE_DEFAULTS
-import x2go.backends.profiles.base as base
-import x2go.log as log
-
-from x2go.x2go_exceptions import X2GoNotImplementedYetException
-
-class X2GoSessionProfilesWINREG(base.X2GoSessionProfiles):
-
-    defaultSessionProfile = copy.deepcopy(X2GO_SESSIONPROFILE_DEFAULTS)
-    _non_profile_sections = ('embedded')
-
-    def __init__(self, session_profile_defaults=None, logger=None, loglevel=log.loglevel_DEFAULT):
-        """\
-        Retrieve X2Go session profiles from the Windows registry.
-
-        :param session_profile_defaults: a default session profile
-        :type session_profile_defaults: ``dict``
-        :param logger: you can pass an :class:`x2go.log.X2GoLogger` object to the
-            :class:`x2go.backends.profiles.winreg.X2GoSessionProfilesWINREG` constructor
-        :type logger: :class:`x2go.log.X2GoLogger` instance
-        :param loglevel: if no :class:`x2go.log.X2GoLogger` object has been supplied a new one will be
-            constructed with the given loglevel
-        :type loglevel: ``int``
-
-        """
-        raise X2GoNotImplementedYetException('WINREG backend support is not implemented yet')
diff --git a/x2go/backends/settings/winreg.py b/x2go/backends/settings/winreg.py
deleted file mode 100644
index df7c57e..0000000
--- a/x2go/backends/settings/winreg.py
+++ /dev/null
@@ -1,68 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (C) 2010-2016 by Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
-#
-# Python X2Go is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# Python X2Go is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program; if not, write to the
-# Free Software Foundation, Inc.,
-# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-
-"""\
-X2GoClientSettings class - managing x2goclient settings file (incl. LDAP-Support).
-
-The :class:`x2go.backends.settings.base.X2GoClientSettings` class one of Python X2Go's a public API classes.
-Use this class (indirectly by retrieving it from an :class:`x2go.client.X2GoClient` instance)
-in your Python X2Go based applications to access the
-»settings« configuration file of your X2Go client application.
-
-This class supports reading the »settings« configuration from the MS Windows Registry.
-
-NOTE: This class is a stub class for now, as noone has been interested in working on this, so far.
-
-"""
-__NAME__ = 'x2gosettings-pylib'
-
-__package__ = 'x2go.backends.settings'
-__name__    = 'x2go.backends.settings.winreg'
-
-# modules
-import copy
-
-# Python X2Go modules
-import x2go.log as log
-from x2go.defaults import X2GO_CLIENTSETTINGS_DEFAULTS as _X2GO_CLIENTSETTINGS_DEFAULTS
-import x2go.inifiles as inifiles
-
-from x2go.x2go_exceptions import X2GoNotImplementedYetException
-
-class X2GoClientSettings(inifiles.X2GoIniFile):
-    """\
-    Windows registry based settings for :class:`x2go.client.X2GoClient` instances.
-
-
-    """
-    defaultValues = copy.deepcopy(_X2GO_CLIENTSETTINGS_DEFAULTS)
-
-    def __init__(self, defaults=_X2GO_CLIENTSETTINGS_DEFAULTS, logger=None, loglevel=log.loglevel_DEFAULT):
-        """\
-        Constructs an :class:`x2go.backends.settings.base.X2GoClientSettings` instance. This is normally done from within an :class:`x2go.client.X2GoClient` instance.
-        You can retrieve this :class:`x2go.backends.settings.base.X2GoClientSettings` instance with the :func:`X2GoClient.get_client_settings() <x2go.client.X2GoClient.get_client_settings()>`
-        method.
-
-        On construction the :class:`x2go.backends.settings.base.X2GoClientSettings` object is filled with values from the Windows registry::
-
-            <HKLM path, FIXME: give proper locations here>
-            <HKCU path, FIXME: give proper locations here>
-
-        """
-        raise X2GoNotImplementedYetException('WINREG backend support is not implemented yet')
diff --git a/x2go/defaults.py b/x2go/defaults.py
index 9a9a95f..0cf2d41 100644
--- a/x2go/defaults.py
+++ b/x2go/defaults.py
@@ -130,19 +130,16 @@ BACKENDS = {
         'GCONF': 'x2go.backends.profiles.gconf',
         'HTTPBROKER': 'x2go.backends.profiles.httpbroker',
         'SSHBROKER': 'x2go.backends.profiles.sshbroker',
-        'WINREG': 'x2go.backends.profiles.winreg',
     },
     'X2GoClientSettings': {
         'default': 'FILE',
         'FILE': 'x2go.backends.settings.file',
         'GCONF': 'x2go.backends.settings.gconf',
-        'WINREG': 'x2go.backends.settings.winreg',
     },
     'X2GoClientPrinting': {
         'default': 'FILE',
         'FILE': 'x2go.backends.printing.file',
         'GCONF': 'x2go.backends.printing.gconf',
-        'WINREG': 'x2go.backends.printing.winreg',
     }
 }
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/python-x2go.git


More information about the x2go-commits mailing list