This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository python-x2go. commit c72289e0da24c46c1eaa3869eec82a93ba206c87 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Sun Sep 24 10:48:05 2017 +0200 backends: No need to ship a stub gconf backend anymore. GConf is dead. --- x2go/backends/printing/gconf.py | 72 ----------------------------------------- x2go/backends/profiles/gconf.py | 58 --------------------------------- x2go/backends/settings/gconf.py | 60 ---------------------------------- 3 files changed, 190 deletions(-) diff --git a/x2go/backends/printing/gconf.py b/x2go/backends/printing/gconf.py deleted file mode 100644 index ce6b568..0000000 --- a/x2go/backends/printing/gconf.py +++ /dev/null @@ -1,72 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (C) 2010-2016 by Mike Gabriel <mike.gabriel@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. - -"""\ -L{X2GoClientPrinting} class is one of Python X2Go's public API classes. - -Retrieve an instance of this class from your L{X2GoClient} instance. -Use this class in your Python X2Go based applications to access the »printing« -configuration of your X2Go client application. - -""" -from builtins import object -__NAME__ = 'x2goprint-pylib' - -# 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): - """\ - L{x2go.backends.printing.gconf.X2GoClientPrinting} provides access to the GCONF based configuration - of the X2Go client printing setup. - - An instance of L{x2go.backends.printing.gconf.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 L{defaults} - @type defaults: C{dict} - @param logger: you can pass an L{X2GoLogger} object to the - L{X2GoPrintAction} constructor - @type logger: C{obj} - @param loglevel: if no L{X2GoLogger} object has been supplied a new one will be - constructed with the given loglevel - @type loglevel: C{int} - - """ - raise X2GoNotImplementedYetException('GCONF backend support is not implemented yet') - - diff --git a/x2go/backends/profiles/gconf.py b/x2go/backends/profiles/gconf.py deleted file mode 100644 index 4131088..0000000 --- a/x2go/backends/profiles/gconf.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (C) 2010-2016 by Mike Gabriel <mike.gabriel@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. - -"""\ -L{X2GoSessionProfiles} class - managing x2goclient session profiles. - -L{X2GoSessionProfiles} is a public API class. Use this class in your Python X2Go based -applications. - -""" -__NAME__ = 'x2gosessionprofiles-pylib' - -# modules -import copy - -# Python X2Go modules -from x2go.defaults import X2GO_SESSIONPROFILE_DEFAULTS as _X2GO_SESSIONPROFILE_DEFAULTS -import x2go.log as log -import x2go.backends.profiles.base as base - -from x2go.x2go_exceptions import X2GoNotImplementedYetException - -class X2GoSessionProfiles(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 GConf daemon. - - @param session_profile_defaults: a default session profile - @type session_profile_defaults: C{dict} - @param logger: you can pass an L{X2GoLogger} object to the - L{x2go.backends.profiles.gconf.X2GoSessionProfiles} constructor - @type logger: L{X2GoLogger} instance - @param loglevel: if no L{X2GoLogger} object has been supplied a new one will be - constructed with the given loglevel - @type loglevel: C{int} - - """ - raise X2GoNotImplementedYetException('GCONF backend support is not implemented yet') diff --git a/x2go/backends/settings/gconf.py b/x2go/backends/settings/gconf.py deleted file mode 100644 index 759b47c..0000000 --- a/x2go/backends/settings/gconf.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (C) 2010-2016 by Mike Gabriel <mike.gabriel@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. - -The L{X2GoClientSettings} class one of Python X2Go's a public API classes. -Use this class (indirectly by retrieving it from an L{X2GoClient} instance) -in your Python X2Go based applications to access the -»settings« configuration file of your X2Go client application. - -""" -from builtins import object -__NAME__ = 'x2gosettings-pylib' - -# modules -import copy - -# Python X2Go modules -import x2go.log as log -from x2go.defaults import X2GO_CLIENTSETTINGS_DEFAULTS as _X2GO_CLIENTSETTINGS_DEFAULTS - -from x2go.x2go_exceptions import X2GoNotImplementedYetException - -class X2GoClientSettings(object): - """\ - Configure settings for L{X2GoClient} instances with the GConf daemon. - - """ - defaultValues = copy.deepcopy(_X2GO_CLIENTSETTINGS_DEFAULTS) - - def __init__(self, defaults=_X2GO_CLIENTSETTINGS_DEFAULTS, logger=None, loglevel=log.loglevel_DEFAULT): - """\ - Constructs an L{X2GoClientSettings} instance. This is normally done from within an L{X2GoClient} instance. - You can retrieve this L{X2GoClientSettings} instance with the L{X2GoClient.get_client_settings()} - method. - - On construction the L{X2GoClientSettings} object is filled with values as found in GConf:: - - <GConf paths, FIXME: give proper locations here> - - """ - raise X2GoNotImplementedYetException('GCONF backend support is not implemented yet') - -- Alioth's /srv/git/code.x2go.org/python-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/python-x2go.git