Re: [Tracker] Tracker.Keywords GetList

FYI. I've got nautilus extension working so I can see and set tags in a nautilus property page.

I replaced the line:

self.keywords = dbus.Interface(obj, 'org.freedesktop.Tracker.Keywords')


obj2 = bus.get_object('org.freedesktop.Tracker',
self.keywords = dbus.Interface(obj2, 'org.freedesktop.Tracker.Keywords')

Thanks for the help.

Gary Bishop wrote:
Oh, now I see. Case matters! It should have been:

obj = bus.get_object('org.freedesktop.Tracker', '/org/freedesktop/Tracker/Keywords')

note the capital T and K.


Gary Bishop wrote:
Thanks for the quick reply. Now I've got:

import dbus
bus = dbus.SessionBus()
obj = bus.get_object('org.freedesktop.Tracker', '/org/freedesktop/tracker/Keywords')
keywords = dbus.Interface(obj, 'org.freedesktop.Tracker.Keywords')
print keywords.GetList('Files')

but I get the same error:

Traceback (most recent call last):
  File "", line 7, in <module>
    print keywords.GetList('Files')
File "/var/lib/python-support/python2.6/dbus/", line 68, in __call__
    return self._proxy_method(*args, **keywords)
File "/var/lib/python-support/python2.6/dbus/", line 140, in __call__
File "/var/lib/python-support/python2.6/dbus/", line 622, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "GetList" with signature "s" on interface "org.freedesktop.Tracker.Keywords" doesn't exist

I must be missing something simple.
tracker-list mailing list
tracker-list gnome org
tracker-list mailing list
tracker-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]