diff options
author | Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com> | 2009-07-15 12:16:17 +0200 |
---|---|---|
committer | Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com> | 2009-07-15 12:16:17 +0200 |
commit | da0e2d02f9928d7d007edc5a5bdbd1a534629eca (patch) | |
tree | e2e5d4610b48d5273c606ed46f6507982d3fbd65 | |
parent | 61ff1efcacae2b0fecb6ec3342e6ac48d4226dcb (diff) |
Forgot to update in_signature for GetTags.
-rw-r--r-- | _zeitgeist/engine/remote.py | 2 | ||||
-rwxr-xr-x | extra/test-daemon.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/_zeitgeist/engine/remote.py b/_zeitgeist/engine/remote.py index 618513ae..426020ce 100644 --- a/_zeitgeist/engine/remote.py +++ b/_zeitgeist/engine/remote.py @@ -134,7 +134,7 @@ class RemoteInterface(SingletonApplication): mode, filters, return_mode=1) @dbus.service.method(DBUS_INTERFACE, - in_signature="siii", out_signature="a(si)") + in_signature="iiis", out_signature="a(si)") def GetTags(self, min_timestamp, max_timestamp, limit, name_filter): """Returns a list containing tuples with the name and the number of occurencies of the tags matching ``name_filter``, or all existing diff --git a/extra/test-daemon.py b/extra/test-daemon.py index 0f581542..bf9d7440 100755 --- a/extra/test-daemon.py +++ b/extra/test-daemon.py @@ -39,15 +39,15 @@ for name in iface.GetTypes(): print '- %s' % name print -print 'Your bookmarks are:' -bookmarks = iface.FindEvents(0, 0, 0, True, "item", [{"bookmarked": True]) +print 'Some of your bookmarks are:' +bookmarks = iface.FindEvents(0, 0, 5, True, "item", [{"bookmarked": True}]) first_item = None for bookmark in bookmarks: - print '-', bookmark[2], '«' + urllib.unquote(str(bookmark["text"])) + '»' + print '-', bookmark["text"], '«' + urllib.unquote(str(bookmark["uri"])) + '»' if not first_item: first_item = bookmark print '\nYour most used tags are:' -print '-', ', '.join(iface.GetMostUsedTags(0, 0, 0)) +print '-', ', '.join(iface.GetTags(0, 0, 5, u"")) print '\nYour recently used tags are:' print '-', ', '.join(iface.GetRecentUsedTags(0, 0, 0)) |