zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #01491
[Bug 620109] Re: Refuses to log events without subjects
Hmm, I think the main question here is: How do events for "launching
applications look like?"
>From how I understand your description I think you want something like:
event = Event.new_from_values(
timestamp=1,
interpretation=ACCESS_EVENT,
manifestation=USER_ACTIVITY,
actor="/path/to/application.desktop"
)
But in my opinion this is wrong, launching events should look like
event = Event.new_from_values(
timestamp=1,
interpretation=ACCESS_EVENT,
manifestation=USER_ACTIVITY,
subject_uri = "/path/to/executable",
subject_interpretation=EXECUTABLE,
subject_manifestation=SOFTWARE_ITEM
)
So the bug should be more about allowing empty actors (which is working
I think)
And a query for "most popular apps would be the union of
"events where actor is APP" and "events with ACCESS_EVENT and subj_uri points to `which APP` (or the exec field in the .desktop file)"
--
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