I beg to differ. But seems to me that they are not working at all. I wrote a test case in the below diff where I insert an event with a payload and try to retrieve it again. This does not work on trunk guys -.-
---
Run "./test/remote-test.py ZeitgeistRemoteAPITest.testFindEventsWithPayload"
I get:
Error from Zeitgeist engine: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/dbus/service.py", line 745, in _message_cb
_method_reply_return(connection, message, method_name, signature, *retval)
File "/usr/lib/pymodules/python2.6/dbus/service.py", line 252, in _method_reply_return
reply.append(signature=signature, *retval)
TypeError: an integer is required
I beg to differ. But seems to me that they are not working at all. I wrote a test case in the below diff where I insert an event with a payload and try to retrieve it again. This does not work on trunk guys -.-
---
=== modified file 'test/remote- test.py' extension( "DataSourceRegi stry", "data_source_ registry" ) GetDataSources( )
--- test/remote-test.py 2010-09-22 18:44:16 +0000
+++ test/remote-test.py 2010-12-20 15:42:22 +0000
@@ -321,6 +321,19 @@
registry = iface.get_
registry.
+ def testFindEventsW ithPayload( self): ls(events[ 0].payload, payload) get_events( ids, callback2) new_for_ values( actor=u" boo", timestamp=124, subject_ uri="file: //yomomma" )] insert_ events( events, callback) InterfaceTest( unittest. TestCase) :
+ mainloop = gobject.MainLoop()
+ payload = "Hello World"
+ def callback(ids):
+ def callback2(events):
+ mainloop.quit()
+ self.assertEqua
+ self.client.
+ events = [Event.
+ events[0].payload = payload
+ self.client.
+ mainloop.run()
+
class ZeitgeistRemote
def setUp(self):
----
Run "./test/ remote- test.py ZeitgeistRemote APITest. testFindEventsW ithPayload"
I get:
Error from Zeitgeist engine: org.freedesktop .DBus.Python. TypeError: Traceback (most recent call last): pymodules/ python2. 6/dbus/ service. py", line 745, in _message_cb reply_return( connection, message, method_name, signature, *retval) pymodules/ python2. 6/dbus/ service. py", line 252, in _method_ reply_return append( signature= signature, *retval)
File "/usr/lib/
_method_
File "/usr/lib/
reply.
TypeError: an integer is required