Merge lp:~email-tehk/zeitgeist-datasources/totem-fix into lp:zeitgeist-datasources/0.8

Proposed by Randal Barlow
Status: Rejected
Rejected by: Michal Hruby
Proposed branch: lp:~email-tehk/zeitgeist-datasources/totem-fix
Merge into: lp:zeitgeist-datasources/0.8
Diff against target: 29 lines (+3/-3)
1 file modified
totem/zeitgeist_plugin.py (+3/-3)
To merge this branch: bzr merge lp:~email-tehk/zeitgeist-datasources/totem-fix
Reviewer Review Type Date Requested Status
Michal Hruby (community) Disapprove
Review via email: mp+26367@code.launchpad.net

Description of the change

Fixes the totem plugin to work with zeitgeist trunk

To post a comment you must log in.
Revision history for this message
Michal Hruby (mhr3) wrote :

We now have the libzg totem plugin, so the old one is unnecessary and will be removed.

review: Disapprove

Unmerged revisions

58. By tehk <tehk@tehk-desktop>

Fixed the totem plugin for the new ontology

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'totem/zeitgeist_plugin.py'
2--- totem/zeitgeist_plugin.py 2010-05-11 15:35:45 +0000
3+++ totem/zeitgeist_plugin.py 2010-05-29 17:33:35 +0000
4@@ -143,14 +143,14 @@
5 if not self.last_action == last_action:
6 self.last_action = last_action
7 print self.last_action
8- self.SendToZeitgeist(self.current_metadata, Interpretation.OPEN_EVENT)
9+ self.SendToZeitgeist(self.current_metadata, Interpretation.ACCESS_EVENT)
10
11 def inform_closed(self):
12 last_action = ["CLOSED", self.current_metadata["uri"], self.current_metadata["title"], self.current_metadata["mimetype"]]
13 if not self.last_action == last_action:
14 self.last_action = last_action
15 print self.last_action
16- self.SendToZeitgeist(self.last_metadata, Interpretation.CLOSE_EVENT)
17+ self.SendToZeitgeist(self.last_metadata, Interpretation.LEAVE_EVENT)
18
19 def SendToZeitgeist(self, doc, event):
20 #print doc["uri"]
21@@ -160,7 +160,7 @@
22 uri=doc["uri"],
23 text=doc["title"],
24 interpretation=unicode(self.current_metadata["interpretation"]),
25- manifestation=unicode(Manifestation.FILE),
26+ manifestation=unicode(Manifestation.FILE_DATA_OBJECT),
27 origin=doc["uri"].rpartition("/")[0],
28 mimetype=doc["mimetype"], #TBD
29 )

Subscribers

People subscribed via source and target branches