[Zeitgeist] [Bug 429255] Re: sqlite error if 'application' attribute of an event is not given
** Changed in: zeitgeist Status: New => Invalid -- 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: Invalid 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 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 ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
[Zeitgeist] [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 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 ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp