Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#277 closed defect (notsugar)

all APs have the same colors

Reported by: tomeu Owned by: tomeu
Priority: Low Milestone:
Component: Sugar Version: Git as of bugdate
Severity: Major Keywords:
Cc: Distribution/OS: Ubuntu
Bug Status: Resolved

Description (last modified by tomeu)

In jhbuild running in Ubuntu Intrepid.

All appear as green with a purple fill.

Change History (10)

comment:1 Changed 12 years ago by tomeu

  • Description modified (diff)

comment:2 Changed 12 years ago by tomeu

Because the only properties notifications we get are:

dbus.Dictionary({dbus.String(u'Strength'): dbus.Byte(40, variant_level=1)},

signature=dbus.Signature('sv'))

comment:3 Changed 12 years ago by tomeu

org.freedesktop.DBus.Properties.GetAll is not working as expected. See this code and its result:

import dbus
bus = dbus.SystemBus()

nm = bus.get_object('org.freedesktop.NetworkManager', '/org/freedesktop/NetworkManager')
nm = dbus.Interface(nm, 'org.freedesktop.NetworkManager')
devices = nm.GetDevices()
for device in devices:
    device = bus.get_object('org.freedesktop.NetworkManager', device)
    props = dbus.Interface(device, 'org.freedesktop.DBus.Properties')
    if props.Get('org.freedesktop.NetworkManager.Device', 'DeviceType') == 2:
        break

wireless = dbus.Interface(device, 'org.freedesktop.NetworkManager.Device.Wireless')
aps = wireless.GetAccessPoints()
ap = bus.get_object('org.freedesktop.NetworkManager', aps[0])

props = dbus.Interface(ap, 'org.freedesktop.DBus.Properties')

print props.GetAll('', byte_arrays=True)
print props.Get('', 'Ssid', byte_arrays=True)

GetAll says that there are no properties, but Get will show that there are:

>>> print props.GetAll('', byte_arrays=True)
dbus.Dictionary({}, signature=dbus.Signature('sv'))
>>> print props.Get('', 'Ssid', byte_arrays=True)
DEN

comment:4 Changed 12 years ago by tomeu

F10 carries a patch not in ubuntu intrepid: https://bugs.freedesktop.org/show_bug.cgi?id=16114

comment:5 Changed 12 years ago by tomeu

  • Priority changed from High to Low

marked as low because only affects sugar on intrepid and I think it's not in widespread use

comment:6 follow-up: Changed 12 years ago by erikos

  • Owner changed from erikos to tomeu
  • Status changed from new to assigned

The patch was for dbus-glib as I understand. So this is something that needs fixing in Ubuntu intrepid, or?

comment:7 Changed 12 years ago by erikos

  • Bug Status changed from Unconfimed to Needinfo

comment:8 in reply to: ↑ 6 Changed 12 years ago by tomeu

Replying to erikos:

The patch was for dbus-glib as I understand. So this is something that needs fixing in Ubuntu intrepid, or?

Yes, that patch is for dbus-glib and won't be needed in post-intrepid releases.

comment:9 Changed 12 years ago by erikos

  • Bug Status changed from Needinfo to Resolved
  • Resolution set to notsugar
  • Status changed from assigned to closed

I guess we can close this then as a not in Sugar bug. Please file it where Ubuntu people can get it in.

comment:10 Changed 8 years ago by godiard

  • Milestone 0.84 deleted

Milestone 0.84 deleted

Note: See TracTickets for help on using tickets.