diff options
Diffstat (limited to 'src/leap/base')
-rw-r--r-- | src/leap/base/authentication.py | 6 | ||||
-rw-r--r-- | src/leap/base/configuration.py | 6 | ||||
-rw-r--r-- | src/leap/base/connection.py | 18 |
3 files changed, 16 insertions, 14 deletions
diff --git a/src/leap/base/authentication.py b/src/leap/base/authentication.py index 0bd54fd6..09ff1d07 100644 --- a/src/leap/base/authentication.py +++ b/src/leap/base/authentication.py @@ -2,10 +2,10 @@ Authentication Base Class """ + class Authentication(object): """ - I have no idea how Authentication (certs,?) will be done, but stub it here. + I have no idea how Authentication (certs,?) + will be done, but stub it here. """ pass - - diff --git a/src/leap/base/configuration.py b/src/leap/base/configuration.py index b0ab2bf2..243e2e2c 100644 --- a/src/leap/base/configuration.py +++ b/src/leap/base/configuration.py @@ -2,10 +2,10 @@ Configuration Base Class """ + class Configuration(object): """ - I have no idea how configuration (txt vs. sqlite) will be done, but let's stub it now. + I have no idea how configuration + (txt vs. sqlite) will be done, but let's stub it now. """ pass - - diff --git a/src/leap/base/connection.py b/src/leap/base/connection.py index 6534560b..6e5086b3 100644 --- a/src/leap/base/connection.py +++ b/src/leap/base/connection.py @@ -3,23 +3,26 @@ Base Connection Classs """ from __future__ import (division, unicode_literals, print_function) #import threading -from functools import partial +#from functools import partial import logging -from leap.utils.coroutines import spawn_and_watch_process -from leap.baseapp.config import get_config, get_vpn_stdout_mockup -from leap.eip.vpnwatcher import EIPConnectionStatus, status_watcher -from leap.eip.vpnmanager import OpenVPNManager, ConnectionRefusedError +#from leap.utils.coroutines import spawn_and_watch_process +#from leap.baseapp.config import get_config, get_vpn_stdout_mockup +#from leap.eip.vpnwatcher import EIPConnectionStatus, status_watcher +from leap.eip.vpnmanager import ConnectionRefusedError -from leap.Configuration import Configuration -from leap.Authentication import Authentication +from leap.configuration import Configuration +from leap.authentication import Authentication logger = logging.getLogger(name=__name__) + class Connection(Configuration, Authentication): def __init__(self, *args, **kwargs): self.connection_state = None self.desired_connection_state = None + #XXX FIXME this is only initializing one + #of the bases.. super(Connection, self).__init__(*args, **kwargs) def connect(self): @@ -108,7 +111,6 @@ class Connection(Configuration, Authentication): logger.error("Failed Connection: %s" % unicode(except_msg)) return conn_result - class ConnectionError(Exception): |