← Back to team overview

zeitgeist team mailing list archive

as requested a return

 

Zeitgeist FindEvents will return a list(x) and a dicty(y)
x contains dicts of events
y contains the uris as a key and the info about the uris in a dict
here is a sample

return (
#EventInfo
[
{
"timestamp": 1234567890,
"source": "http://gnome.org/zeitgeist/schema/1.0/core#UserActivity";,
"content": "http://gnome.org/zeitgeist/schema/1.0/core#VisitEvent";,
"subject": "http://www.youtube.com";,
"app": "firefox.desktop",
"Tags":
{
"UserTags": [""],
"AutoTags": [""],
"ExpriringTags": ["Simpsons","LOL Catz"]
} ,
"Bookmark": False
},
{
"timestamp": 1234567899,
"source": "http://gnome.org/zeitgeist/schema/1.0/core#UserActivity";,
"content": "http://gnome.org/zeitgeist/schema/1.0/core#VisitEvent";,
"subject": "http://www.youtube.com";,
"app": "firefox.desktop",
"Tags":
{
"UserTags": [""],
"AutoTags": [""],
"ExpriringTags": [""]
} ,
"Bookmark": True
},
{
"timestamp": 1234567999,
"source": "http://gnome.org/zeitgeist/schema/1.0/core#UserActivity";,
"content": "http://gnome.org/zeitgeist/schema/1.0/core#VisitEvent";,
"subject": "
http://www.google.com/search?hl=en&client=firefox-a&rls=com.ubuntu:en-US:unofficial&hs=5K6&as_q=gnome+zeitgeist&as_epq=&as_oq=&as_eq=&num=10&lr=&as_filetype=&ft=i&as_sitesearch=&as_qdr=m&as_rights=&as_occt=any&cr=&as_nlo=&as_nhi=&safe=images
"
"app": "firefox.desktop",
"Tags":
{
"UserTags": ["Dinner"],
"AutoTags": [""],
"ExpriringTags": [""]
} ,
"Bookmark": False
}
]



#ItemInfo
{
"http://www.youtube.com":
{
"content": http://gnome.org/zeitgeist/schema/1.0/core#WebHistory,
"source": http://gnome.org/zeitgeist/schema/1.0/core#Internet,
"origin":  http://youtube.com,
"text": "Youtube - Broadcast Yourself",
"mimetype": "text/html",
"icon": "",
"Tags":
{
"UserTags": ["LOL Catz"],
"AutoTags": [""],
"ExpriringTags": ["Simpsons"]
},
"Bookmark": True
},
"
http://www.google.com/search?hl=en&client=firefox-a&rls=com.ubuntu:en-US:unofficial&hs=5K6&as_q=gnome+zeitgeist&as_epq=&as_oq=&as_eq=&num=10&lr=&as_filetype=&ft=i&as_sitesearch=&as_qdr=m&as_rights=&as_occt=any&cr=&as_nlo=&as_nhi=&safe=images
":
{
"content": http://gnome.org/zeitgeist/schema/1.0/core#WebHistory
"source": http://gnome.org/zeitgeist/schema/1.0/core#Internet
"origin":  http://google.com
"text": "Youtube - Broadcast Yourself"
"mimetype": "text/html"
"icon": "",
"Tags":
{
"UserTags": ["Simpsons"],
"AutoTags": [""],
"ExpriringTags": ["LOL Catz"]
},
"Bookmark": True
}
}
)