RE: DBus Properties 0.7.0 Device question

2008-12-19 Thread Philip A. Culver
Thanks!

-Original Message-
From: Tambet Ingo [mailto:tam...@gmail.com] 
Sent: Thursday, December 18, 2008 5:14 AM
To: Simon Schampijer
Cc: Philip Culver; networkmanager-list@gnome.org
Subject: Re: DBus Properties 0.7.0 Device question

On Thu, Dec 18, 2008 at 11:34, Simon Schampijer  wrote:
> Tambet Ingo wrote:
>>
>> On Wed, Dec 17, 2008 at 22:39, Simon Schampijer 
>> wrote:
>>>
>>> Philip Culver wrote:
>>>>
>>>> Some addtional information.
>>>>
>>>> If I execute:
>>>>
>>>> dbus-send --system --dest=org.freedesktop.NetworkManager
>>>> --print-reply /org/freedesktop/Hal/devices/net_00_13_02_06_6d_ee
>>>> org.freedesktop.DBus.Properties.Get
>>>> string:'org.freedesktop.NetworkManager.Device.Wireless'
>>>> string:'HwAddress'
>>>>
>>>> I get the proper value with a Get call.  If I execute the GetAll method
>>>> I always get the generic the Device properties.
>>>
>>> That is an interesting one. I actually saw the same problem with using
>>> the
>>> dbus python interface when doing an GetAll on a wired device.
>>
>> It's a bug in dbus-glib. It never even looks at the DBus interface (it
>> only needs to be a string) which is passed to GetAll() method:
>>
>> http://cgit.freedesktop.org/dbus/dbus-glib/tree/dbus/dbus-gobject.c#n1442
>>
>> Tambet
>>
>
> ok, makes sense - Dan was so kind to file it:
>
> http://bugs.freedesktop.org/show_bug.cgi?id=19145

I was even kinder, I just fixed it. :) Attached the patch to the bugzilla.

Tambet

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: DBus Properties 0.7.0 Device question

2008-12-18 Thread Simon Schampijer

Tambet Ingo wrote:

On Thu, Dec 18, 2008 at 11:34, Simon Schampijer  wrote:

Tambet Ingo wrote:

On Wed, Dec 17, 2008 at 22:39, Simon Schampijer 
wrote:

Philip Culver wrote:

Some addtional information.

If I execute:

dbus-send --system --dest=org.freedesktop.NetworkManager
--print-reply /org/freedesktop/Hal/devices/net_00_13_02_06_6d_ee
org.freedesktop.DBus.Properties.Get
string:'org.freedesktop.NetworkManager.Device.Wireless'
string:'HwAddress'

I get the proper value with a Get call.  If I execute the GetAll method
I always get the generic the Device properties.

That is an interesting one. I actually saw the same problem with using
the
dbus python interface when doing an GetAll on a wired device.

It's a bug in dbus-glib. It never even looks at the DBus interface (it
only needs to be a string) which is passed to GetAll() method:

http://cgit.freedesktop.org/dbus/dbus-glib/tree/dbus/dbus-gobject.c#n1442

Tambet


ok, makes sense - Dan was so kind to file it:

http://bugs.freedesktop.org/show_bug.cgi?id=19145


I was even kinder, I just fixed it. :) Attached the patch to the bugzilla.

Tambet


Thanks, this is the right spirit!

Cheers,
   Simon



___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: DBus Properties 0.7.0 Device question

2008-12-18 Thread Tambet Ingo
On Thu, Dec 18, 2008 at 11:34, Simon Schampijer  wrote:
> Tambet Ingo wrote:
>>
>> On Wed, Dec 17, 2008 at 22:39, Simon Schampijer 
>> wrote:
>>>
>>> Philip Culver wrote:

 Some addtional information.

 If I execute:

 dbus-send --system --dest=org.freedesktop.NetworkManager
 --print-reply /org/freedesktop/Hal/devices/net_00_13_02_06_6d_ee
 org.freedesktop.DBus.Properties.Get
 string:'org.freedesktop.NetworkManager.Device.Wireless'
 string:'HwAddress'

 I get the proper value with a Get call.  If I execute the GetAll method
 I always get the generic the Device properties.
>>>
>>> That is an interesting one. I actually saw the same problem with using
>>> the
>>> dbus python interface when doing an GetAll on a wired device.
>>
>> It's a bug in dbus-glib. It never even looks at the DBus interface (it
>> only needs to be a string) which is passed to GetAll() method:
>>
>> http://cgit.freedesktop.org/dbus/dbus-glib/tree/dbus/dbus-gobject.c#n1442
>>
>> Tambet
>>
>
> ok, makes sense - Dan was so kind to file it:
>
> http://bugs.freedesktop.org/show_bug.cgi?id=19145

I was even kinder, I just fixed it. :) Attached the patch to the bugzilla.

Tambet
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: DBus Properties 0.7.0 Device question

2008-12-18 Thread Simon Schampijer

Tambet Ingo wrote:

On Wed, Dec 17, 2008 at 22:39, Simon Schampijer  wrote:

Philip Culver wrote:

Some addtional information.

If I execute:

dbus-send --system --dest=org.freedesktop.NetworkManager
--print-reply /org/freedesktop/Hal/devices/net_00_13_02_06_6d_ee
org.freedesktop.DBus.Properties.Get
string:'org.freedesktop.NetworkManager.Device.Wireless'
string:'HwAddress'

I get the proper value with a Get call.  If I execute the GetAll method
I always get the generic the Device properties.

That is an interesting one. I actually saw the same problem with using the
dbus python interface when doing an GetAll on a wired device.


It's a bug in dbus-glib. It never even looks at the DBus interface (it
only needs to be a string) which is passed to GetAll() method:

http://cgit.freedesktop.org/dbus/dbus-glib/tree/dbus/dbus-gobject.c#n1442

Tambet



ok, makes sense - Dan was so kind to file it:

http://bugs.freedesktop.org/show_bug.cgi?id=19145

Thanks,
   Simon
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: DBus Properties 0.7.0 Device question

2008-12-18 Thread Tambet Ingo
On Wed, Dec 17, 2008 at 22:39, Simon Schampijer  wrote:
> Philip Culver wrote:
>>
>> Some addtional information.
>>
>> If I execute:
>>
>> dbus-send --system --dest=org.freedesktop.NetworkManager
>> --print-reply /org/freedesktop/Hal/devices/net_00_13_02_06_6d_ee
>> org.freedesktop.DBus.Properties.Get
>> string:'org.freedesktop.NetworkManager.Device.Wireless'
>> string:'HwAddress'
>>
>> I get the proper value with a Get call.  If I execute the GetAll method
>> I always get the generic the Device properties.
>
> That is an interesting one. I actually saw the same problem with using the
> dbus python interface when doing an GetAll on a wired device.

It's a bug in dbus-glib. It never even looks at the DBus interface (it
only needs to be a string) which is passed to GetAll() method:

http://cgit.freedesktop.org/dbus/dbus-glib/tree/dbus/dbus-gobject.c#n1442

Tambet
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: DBus Properties 0.7.0 Device question

2008-12-17 Thread Simon Schampijer

Philip Culver wrote:

Some addtional information.

If I execute:

dbus-send --system --dest=org.freedesktop.NetworkManager
--print-reply /org/freedesktop/Hal/devices/net_00_13_02_06_6d_ee
org.freedesktop.DBus.Properties.Get
string:'org.freedesktop.NetworkManager.Device.Wireless'
string:'HwAddress'

I get the proper value with a Get call.  If I execute the GetAll method
I always get the generic the Device properties.


That is an interesting one. I actually saw the same problem with using 
the dbus python interface when doing an GetAll on a wired device.


Best,
   Simon


Thanks,
-- Phil

On Wed, 2008-12-17 at 14:35 -0500, Philip Culver wrote:

Hello,

I am struggling a little bit with the Properties interface for devices.
I can get the properties from the generic device but depending on device
type how do I get the properties from the Wired or Wireless devices.  I
am using dbus-java to communicate but decided to back off and try this
with dbus-send.   I query:

dbus-send --system --dest=org.freedesktop.NetworkManager
--print-reply /org/freedesktop/Hal/devices/net_00_13_02_06_6d_ee
org.freedesktop.DBus.Properties.GetAll string:''

I receive the various dictionary items for a generic Device, udi,
Driver, etc..  What do I have to set to get the Wired/Wireless
properties?

Thanks,
Phil Culver

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list



___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: DBus Properties 0.7.0 Device question

2008-12-17 Thread Philip Culver
Some addtional information.

If I execute:

dbus-send --system --dest=org.freedesktop.NetworkManager
--print-reply /org/freedesktop/Hal/devices/net_00_13_02_06_6d_ee
org.freedesktop.DBus.Properties.Get
string:'org.freedesktop.NetworkManager.Device.Wireless'
string:'HwAddress'

I get the proper value with a Get call.  If I execute the GetAll method
I always get the generic the Device properties.

Thanks,
-- Phil

On Wed, 2008-12-17 at 14:35 -0500, Philip Culver wrote:
> Hello,
> 
> I am struggling a little bit with the Properties interface for devices.
> I can get the properties from the generic device but depending on device
> type how do I get the properties from the Wired or Wireless devices.  I
> am using dbus-java to communicate but decided to back off and try this
> with dbus-send.   I query:
> 
> dbus-send --system --dest=org.freedesktop.NetworkManager
> --print-reply /org/freedesktop/Hal/devices/net_00_13_02_06_6d_ee
> org.freedesktop.DBus.Properties.GetAll string:''
> 
> I receive the various dictionary items for a generic Device, udi,
> Driver, etc..  What do I have to set to get the Wired/Wireless
> properties?
> 
> Thanks,
> Phil Culver
> 
> ___
> NetworkManager-list mailing list
> NetworkManager-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


DBus Properties 0.7.0 Device question

2008-12-17 Thread Philip Culver
Hello,

I am struggling a little bit with the Properties interface for devices.
I can get the properties from the generic device but depending on device
type how do I get the properties from the Wired or Wireless devices.  I
am using dbus-java to communicate but decided to back off and try this
with dbus-send.   I query:

dbus-send --system --dest=org.freedesktop.NetworkManager
--print-reply /org/freedesktop/Hal/devices/net_00_13_02_06_6d_ee
org.freedesktop.DBus.Properties.GetAll string:''

I receive the various dictionary items for a generic Device, udi,
Driver, etc..  What do I have to set to get the Wired/Wireless
properties?

Thanks,
Phil Culver

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list