View source for User:Kagee

From Openmoko

Jump to: navigation, search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Administrators.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page:

Return to User:Kagee.

Personal tools
   org.freesmartphone.Usage

Method: ListResources ( ) → as

Description: List available resources. Returns as: resources

An array of resource names.

   cli-framework

>>> usageiface.ListResources() Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged ['WiFi', 'Display', 'Bluetooth', 'TEST', 'GSM', 'CPU', 'GPS']

>>> usageiface.ListResources() Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged ['WiFi', 'Display', 'Bluetooth', 'TEST', 'GSM', 'CPU', 'GPS'] >>> usageiface.GetResourcePolicy('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged 'auto' >>> usageiface.GetResourceState('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged False >>> usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> a = usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged Traceback (most recent call last):

 File "<console>", line 1, in <module>
 File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__
   **keywords)
 File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 622, in call_blocking
   message, timeout)

DBusException: org.freesmartphone.Usage.UserExists: User :1.25 already requested Bluetooth >>> usageiface.GetResourceState('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged True >>> a = usageiface.ReleaseResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> a = usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> usageiface.GetResourceState('Bluetooth') >>> a = usageiface.ReleaseResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>> usageiface.GetResourceState('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged False >>> a = usageiface.RequestResource('Bluetooth') Using **pending_return in dbus_connection_send_with_reply_setup() without pending_setup is deprecated and strongly discouraged >>>