Commit 90204008 authored by Guillaume Roguez's avatar Guillaume Roguez

tools: bring back python daemon controler

This patch brings back an old python daemon DBus client
and update it to latest changes (API, rebranding, etc).
This version needs Python3, plus python3-dbus and
python3-gobject modules to run.

Refs #67053

Change-Id: Ia840a3547a428becd93b56a1d0e6cac4a4f3d5e5
parent 43ed62cf
# Copyright (C) 2008 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# Copyright (C) 2015 Savoir-Faire Linux Inc.
# Author: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
......@@ -12,6 +14,16 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Additional permission under GNU GPL version 3 section 7:
#
# If you modify this program, or any covered work, by linking or
# combining it with the OpenSSL project's OpenSSL library (or a
# modified version of that library), containing parts covered by the
# terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
# grants you additional permission to convey the resulting work.
# Corresponding Source for a non-source form of such a combination
# shall include the source code for the parts of OpenSSL used as well
# as that of the covered work.
#
This diff is collapsed.
......@@ -74,7 +74,7 @@ class SflPhoneTests():
HOSTNAME = "hostname"
USERNAME = "username"
PASSWORD = "password"
accDetails = {CONFIG_ACCOUNT_TYPE:"SIP", CONFIG_ACCOUNT_ALIAS:"testsuiteaccount",
HOSTNAME:"192.168.50.79", USERNAME:"31416",
PASSWORD:"1234"}
......
# Copyright (C) 2008 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# Copyright (C) 2015 Savoir-Faire Linux Inc.
# Author: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
......@@ -12,29 +14,40 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Additional permission under GNU GPL version 3 section 7:
#
# If you modify this program, or any covered work, by linking or
# combining it with the OpenSSL project's OpenSSL library (or a
# modified version of that library), containing parts covered by the
# terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
# grants you additional permission to convey the resulting work.
# Corresponding Source for a non-source form of such a combination
# shall include the source code for the parts of OpenSSL used as well
# as that of the covered work.
#
"""Internal exceptions"""
"""Our own Errors exceptions"""
__all__ = ['DRingCtrlError',
'DRingCtrlDBusError',
'DRingCtrlDeamonError']
class DRingCtrlError(Exception):
"""Base class for all our exceptions."""
class SflPhoneError(Exception):
"""Base class for all SflPhone exceptions."""
def __init__(self, help=None):
self.help=help
def __str__(self):
return repr(self.help)
self.help = str(help)
def __str__(self):
return self.help
class SPdbusError(SflPhoneError):
class DRingCtrlDBusError(DRingCtrlError):
"""General error for dbus communication"""
class SPdaemonError(SflPhoneError):
class DRingCtrlDeamonError(DRingCtrlError):
"""General error for daemon communication"""
class SPserverError(SflPhoneError):
"""General error for server communication"""
class SPconfigurationError(SflPhoneError):
"""General error for configuration"""
class SPaccountError(SflPhoneError):
class DRingCtrlAccountError(DRingCtrlError):
"""General error for account handling"""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment