zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #02660
[Bug 692645] [NEW] sending payload from engine to client does not work
Public bug reported:
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'
--- 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_extension("DataSourceRegistry", "data_source_registry")
registry.GetDataSources()
+ def testFindEventsWithPayload(self):
+ mainloop = gobject.MainLoop()
+ payload = "Hello World"
+ def callback(ids):
+ def callback2(events):
+ mainloop.quit()
+ self.assertEquals(events[0].payload, payload)
+ self.client.get_events(ids, callback2)
+ events = [Event.new_for_values(actor=u"boo", timestamp=124, subject_uri="file://yomomma")]
+ events[0].payload = payload
+ self.client.insert_events(events, callback)
+ mainloop.run()
+
class ZeitgeistRemoteInterfaceTest(unittest.TestCase):
def setUp(self):
----
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
** Affects: zeitgeist
Importance: Undecided
Assignee: Seif Lotfy (seif)
Status: In Progress
** Description changed:
- 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 -.-
+ 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'
--- 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_extension("DataSourceRegistry", "data_source_registry")
- registry.GetDataSources()
+ registry = iface.get_extension("DataSourceRegistry", "data_source_registry")
+ registry.GetDataSources()
+ def testFindEventsWithPayload(self):
+ mainloop = gobject.MainLoop()
+ payload = "Hello World"
+ def callback(ids):
+ def callback2(events):
+ mainloop.quit()
+ self.assertEquals(events[0].payload, payload)
+ self.client.get_events(ids, callback2)
+ events = [Event.new_for_values(actor=u"boo", timestamp=124, subject_uri="file://yomomma")]
+ events[0].payload = payload
+ self.client.insert_events(events, callback)
+ mainloop.run()
+
- class ZeitgeistRemoteInterfaceTest(unittest.TestCase):
+ class ZeitgeistRemoteInterfaceTest(unittest.TestCase):
- def setUp(self):
+ def setUp(self):
----
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)
+ 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
** Changed in: zeitgeist
Status: New => In Progress
** Changed in: zeitgeist
Milestone: None => 0.7.0
** Changed in: zeitgeist
Assignee: (unassigned) => Seif Lotfy (seif)
** Branch linked: lp:~seif/zeitgeist/fixing-payloads
--
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/692645
Title:
sending payload from engine to client does not work
Status in Zeitgeist Framework:
In Progress
Bug description:
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'
--- 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_extension("DataSourceRegistry", "data_source_registry")
registry.GetDataSources()
+ def testFindEventsWithPayload(self):
+ mainloop = gobject.MainLoop()
+ payload = "Hello World"
+ def callback(ids):
+ def callback2(events):
+ mainloop.quit()
+ self.assertEquals(events[0].payload, payload)
+ self.client.get_events(ids, callback2)
+ events = [Event.new_for_values(actor=u"boo", timestamp=124, subject_uri="file://yomomma")]
+ events[0].payload = payload
+ self.client.insert_events(events, callback)
+ mainloop.run()
+
class ZeitgeistRemoteInterfaceTest(unittest.TestCase):
def setUp(self):
----
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
Follow ups
References