Public bug reported:

Example code:

import time, os
from gi.repository import GObject
from zeitgeist.client import ZeitgeistClient
from zeitgeist.datamodel import Event, Subject, Interpretation
zg = ZeitgeistClient()

event_template = Event()
event_template.actor = "foo"

mainloop = GObject.MainLoop()

def callback(events):
    print len(events)
    mainloop.quit()

zg.find_events_for_templates([event_template], callback, num_events=100, 
result_type=0)
mainloop.run()

Searching the actors table in sqlite shows a "foo" actor after
execution.

** Affects: zeitgeist
     Importance: Undecided
         Status: New

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

Title:
  Extraneous actors are inserted into sqlite database during read-only
  operations

Status in Zeitgeist Framework:
  New

Bug description:
  Example code:

  import time, os
  from gi.repository import GObject
  from zeitgeist.client import ZeitgeistClient
  from zeitgeist.datamodel import Event, Subject, Interpretation
  zg = ZeitgeistClient()

  event_template = Event()
  event_template.actor = "foo"

  mainloop = GObject.MainLoop()

  def callback(events):
      print len(events)
      mainloop.quit()

  zg.find_events_for_templates([event_template], callback, num_events=100, 
result_type=0)
  mainloop.run()

  Searching the actors table in sqlite shows a "foo" actor after
  execution.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/953041/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~zeitgeist
Post to     : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp

Reply via email to