Merge lp:~chipaca/unity-lens-video/yew-tee-eff-eight-too into lp:unity-lens-video

Proposed by John Lenton
Status: Merged
Approved by: David Callé
Approved revision: 49
Merged at revision: 49
Proposed branch: lp:~chipaca/unity-lens-video/yew-tee-eff-eight-too
Merge into: lp:unity-lens-video
Diff against target: 18 lines (+5/-3)
1 file modified
src/unity-lens-video (+5/-3)
To merge this branch: bzr merge lp:~chipaca/unity-lens-video/yew-tee-eff-eight-too
Reviewer Review Type Date Requested Status
Unity Videos lens Pending
Review via email: mp+94375@code.launchpad.net

Commit message

stringify data from zeitgeist

Description of the change

stringify data from zeitgeist

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/unity-lens-video'
2--- src/unity-lens-video 2012-02-23 10:41:58 +0000
3+++ src/unity-lens-video 2012-02-23 13:39:21 +0000
4@@ -375,10 +375,12 @@
5 else:
6 # If the file is distant, we take
7 # all we need from Zeitgeist
8- item.append(event.get_subjects()[0].text)
9+ # this one can be any unicode string:
10+ item.append(event.get_subjects()[0].text.encode("utf-8"))
11 item.append('')
12- item.append(event.get_subjects()[0].uri)
13- item.append(event.get_subjects()[0].storage)
14+ # these two *should* be ascii, but it can't hurt to be safe
15+ item.append(event.get_subjects()[0].uri.encode("utf-8"))
16+ item.append(event.get_subjects()[0].storage.encode("utf-8"))
17 result_list.append(item)
18 return result_list
19

Subscribers

People subscribed via source and target branches