zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #00187
[Bug 429255] Re: sqlite error if 'application' attribute of an event is not given
** Attachment added: "reproducer.py"
http://launchpadlibrarian.net/31773016/reproducer.py
** Branch linked: lp:~zeitgeist/zeitgeist/event-item-separation
--
sqlite error if 'application' attribute of an event is not given
https://bugs.launchpad.net/bugs/429255
You received this bug notification because you are a member of
Zeitgeist-Engine, which is the registrant for Zeitgeist Engine.
Status in Zeitgeist Engine: New
Bug description:
(This is a bug in the event-item-separation branch)
According to the definition of an event in zeitgeist/datamodel.py the "application" attribute is optional.
The attached reproducer trys to add an event with 'application' not set, it fails with the following error:
Traceback (most recent call last):
File "reproducer.py", line 24, in <module>
engine.insert_event(event, item)
File "/home/markus/devel/gnome-zeitgeist/zeitgeist/event-item-separation/_zeitgeist/engine/querymancer_engine.py", line 425, in insert_event
app_id=self._get_application_id(event["application"]))
File "/home/markus/devel/gnome-zeitgeist/zeitgeist/event-item-separation/_zeitgeist/engine/querymancer.py", line 267, in add
self._cursor.execute(self.INSERT(**rowspec))
sqlite3.OperationalError: no such column: None
References