← Back to team overview

zeitgeist team mailing list archive

[Bug 429255] [NEW] sqlite error if 'application' attribute of an event is not given

 

Public bug reported:

(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

** Affects: zeitgeist
     Importance: Undecided
         Status: New


** Tags: 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



Follow ups

References