and then need to run the following commands on the python console
>>> sub = Subject.new_for_values()
>> ev = Event.new_for_values(actor="application://foo.desktop", subjects=[sub,])
>>> obj=dbus.SessionBus().get_object("org.gnome.zeitgeist.Engine","/org/gnome/zeitgeist/blacklist")
>>> iface=dbus.Interface(obj, "org.gnome.zeitgeist.Blacklist")
>>> blk= map(Event.new_for_struct,iface.GetBlacklist())
>>> blk.append(ev)
>>> iface.SetBlacklist(blk, "foo")
Then go and check the console. You would get the output like
Markus,
I got this when trying to work on the new blacklist API.
So you need to run the daemon from this branch.
lp:~manishsinha/zeitgeist/reproduce-691167
and then need to run the following commands on the python console new_for_ values( ) for_values( actor=" application: //foo.desktop" , subjects=[sub,]) SessionBus( ).get_object( "org.gnome. zeitgeist. Engine" ,"/org/ gnome/zeitgeist /blacklist" ) Interface( obj, "org.gnome. zeitgeist. Blacklist" ) new_for_ struct, iface.GetBlackl ist()) ist(blk, "foo")
>>> sub = Subject.
>> ev = Event.new_
>>> obj=dbus.
>>> iface=dbus.
>>> blk= map(Event.
>>> blk.append(ev)
>>> iface.SetBlackl
Then go and check the console. You would get the output like
Event([ dbus.Array( [u'', u'1292500628312', u'', u'', u'application: //foo.desktop' ], signature= dbus.Signature( 's')), [Subject([u'', u'', u'', u'', u'', u'', u''])], dbus.Array([], signature= dbus.Signature( 'y'))]) //foo.desktop' ], [[u'', u'', u'', u'', u'', u'', u'']], "dbus.Array([], signature= dbus.Signature( 'y'))"] ]} //foo.desktop' ], [[u'', u'', u'', u'', u'', u'', u'']], "dbus.Array([], signature= dbus.Signature( 'y'))"] ]}
{'foo': [[[u'', u'1292500628312', u'', u'', u'application:
[2010-12-16 21:32:44,249] - DEBUG - zeitgeist.blacklist - Blacklist updated: {'foo':
[[[u'', u'1292500628312', u'', u'', u'application: