core, frontends: various fixes for Libervia:

- quick_app: don't fail when we can't get autodisconnect parameter
    - bridge: removed useless BridgeFrontend parent class
    - use of TypeError, unicode and list to workaround Pyjamas incompatibilities
This commit is contained in:
Goffi 2017-02-26 18:23:01 +01:00
commit 9b0542fb46
2 changed files with 13 additions and 14 deletions

View file

@ -18,12 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
class BridgeFrontend(object):
def register(self, functionName, handler):
raise NotImplementedError
class BridgeException(Exception):
"""An exception which has been raised from the backend and arrived to the frontend."""

View file

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from sat.core.i18n import _
from bridge_frontend import BridgeFrontend, BridgeException
from bridge_frontend import BridgeException
import dbus
from sat.core.log import getLogger
log = getLogger(__name__)
@ -59,7 +59,7 @@ def dbus_to_bridge_exception(dbus_e):
return BridgeException(name, message, condition)
class Bridge(BridgeFrontend):
class Bridge(object):
def bridgeConnect(self, callback, errback):
try: