1 from connection06
import cConnection_06
2 from applet
import cApplet
4 NETWORK_TYPE_ALLOWED
= 1
5 class cApplet_06(cApplet
):
6 def __init__(self
, svc
, opath
):
9 self
.io
= bus
.get_object(self
.svc
, self
.opath
)
10 self
.ii
= dbus
.Interface(self
.io
, 'org.freedesktop.NetworkManagerInfo')
15 def myConnection(self
, opath
):
16 return cConnection_06(self
, opath
)
19 def Connections(self
):
20 names
= self
.ii
.getNetworks(NETWORK_TYPE_ALLOWED
)
21 return map(self
.myConnection
, names
)