← Back to team overview

zeitgeist team mailing list archive

Re: [Bug 620109] Re: Refuses to log events without subjects

 

On 19 August 2010 18:55, Seif Lotfy <620109@xxxxxxxxxxxxxxxxxx> wrote:
> I would like to have a soltuion where the actor is the environment that
> launches tha app and the subject is the app itself...
> However his could mess up AJ terribly unless I query for all subjects except
> for those of type software_item

How is that? Do you just query for everything? In that case your code
must be ready to accept *everything*. Otherwise we impose an
artificial limitation of what data you can log in ZG. GAJ can not
expect ZG data sources to behave nicely since we deliberately made the
InsertEvent API very forgiving.

-- 
Refuses to log events without subjects
https://bugs.launchpad.net/bugs/620109
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: New

Bug description:
Zeitgeist says:

Traceback (most recent call last):
  File "/usr/share/zeitgeist/_zeitgeist/engine/main.py", line 497, in _insert_event_without_error
    return self._insert_event(event, sender)
  File "/usr/share/zeitgeist/_zeitgeist/engine/main.py", line 508, in _insert_event
    raise ValueError("Illegal event format: No subject")
ValueError: Illegal event format: No subject

If I send it an event without a subject. The reason why I am doing that is because I am trying to log whenever an app is launched. Like for instance when I launch the Gnome calculator. This way I can have "most popular apps" listings and what not :-)

So my request: Can we lax the requirement for events to have a subject?





References