← Back to team overview

zeitgeist team mailing list archive

[Bug 693094] Re: Zeitgeist engine tells that an event has been inserted even though it has been blocked by an extension

 

** Changed in: zeitgeist
       Status: Fix Committed => Fix Released

-- 
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/693094

Title:
  Zeitgeist engine tells that an event has been inserted even though it
  has been blocked by an extension

Status in Zeitgeist Framework:
  Fix Released

Bug description:
  I was working on blacklist when I noticed that even though the event
  insertion has been blocked by an extension, the engine still reports
  that the event has been inserted

  Here is the output at the daemon
  [2010-12-21 22:24:21,122] - ERROR - zeitgeist.engine - error while inserting 'Event([dbus.Array([9176, dbus.String(u'1292949791179'), dbus.String(u''), dbus.String(u''), dbus.String(u'application://foo.desktop')], signature=dbus.Signature('s')), [Subject([dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u'')])], dbus.Array([], signature=dbus.Signature('y'))])'
  Traceback (most recent call last):
    File "/home/manish/code/zeitgeist/zeitgeist/../_zeitgeist/engine/main.py", line 484, in _insert_event_without_error
      return self._insert_event(event, sender)
    File "/home/manish/code/zeitgeist/zeitgeist/../_zeitgeist/engine/main.py", line 503, in _insert_event
      raise AssertionError("Inserting of event was blocked by an extension")
  AssertionError: Inserting of event was blocked by an extension
  [2010-12-21 22:24:21,126] - DEBUG - zeitgeist.engine - Inserted 1 events in 0.001179s

  
  The section in _zeitgeist/engine/main.py responsible for this is 
  http://paste.ubuntu.com/546316/
  The AssertionError is raised on line 29 which is caught at line 11, but at line 3 and line 4, there is no way to check that the the event was actually inserted

  I was recommend some way to track how many events have been inserted
  and how many have been blocked





References