Commit 7bfb3026 authored by Dicson's avatar Dicson

update WicdPlugin to py3

parent 9c81c603
from wicd_support import WicdPlugin
from .wicd_support import WicdPlugin
......@@ -6,4 +6,4 @@ description: Support for autodetection of network status for Wicd Network Manage
Requires wicd and python-dbus.
authors = Denis Fomin <fominde@gmail.com>
homepage = http://trac-plugins.gajim.org/wiki/WicdSupportPlugin
max_gajim_version: 0.15.9
min_gajim_version: 0.15.10
# -*- coding: utf-8 -*-
import gobject
from common import gajim
from plugins import GajimPlugin
......@@ -55,12 +54,12 @@ class WicdPlugin(GajimPlugin):
#WIRED = 3
#SUSPENDED = 4
if state == 2 or state == 3:
for connection in gajim.connections.itervalues():
for connection in gajim.connections.values():
if gajim.config.get_per('accounts', connection.name,
'listen_to_network_manager') and connection.time_to_reconnect:
connection._reconnect()
else:
for connection in gajim.connections.itervalues():
for connection in gajim.connections.values():
if gajim.config.get_per('accounts', connection.name,
'listen_to_network_manager') and connection.connected > 1:
connection._disconnectedReconnCB()
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