Rawhide NetworkManager

Dan Williams dcbw at redhat.com
Wed Mar 23 18:33:00 UTC 2005


On Wed, 2005-03-23 at 18:32 +0100, Nils Philippsen wrote:
> Hmm, how can I find out what methods a remote object implements -- dir()
> obviously doesn't tell me there is getType(), but it worked kind of:
> 
> Traceback (most recent call last):
>   File "./NetworkManagerTinkerer.py", line 18, in ?
>     print dhcpOptions.getType ('NTP Servers')
>   File "/usr/lib/python2.3/site-packages/dbus.py", line 208, in __call__
>     reply_message = self._connection.send_with_reply_and_block(message,
> 5000)
>   File "dbus_bindings.pyx", line 557, in
> dbus_bindings.Connection.send_with_reply_and_block
> dbus_bindings.DBusException: The requested DHCP option does not exist.

The other issue here might be that the server didn't reply with this
option at all.  Which itself might be because we didn't explicitly
request it, or because it just doesn't have that option set.  For
example, the office DHCP servers return the NTP server option, but
wireless routers usually do not.  This is what just happened to me when
I switched to a wireless connection here at the office.  I suspect that
apps will have to have intelligent fallbacks.

Dan




More information about the devel mailing list