update WicdPlugin to py3

This commit is contained in:
Denis Fomin
2013-01-28 21:30:27 +04:00
parent 9c81c60373
commit 7bfb30269c
3 changed files with 4 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
# -*- 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()