Merge lp:~submarine/unity-scope-tomboy/surfacing into lp:unity-scope-tomboy

Proposed by David Callé
Status: Merged
Approved by: Paweł Stołowski
Approved revision: 27
Merged at revision: 27
Proposed branch: lp:~submarine/unity-scope-tomboy/surfacing
Merge into: lp:unity-scope-tomboy
Diff against target: 16 lines (+5/-1)
1 file modified
src/unity_tomboy_daemon.py (+5/-1)
To merge this branch: bzr merge lp:~submarine/unity-scope-tomboy/surfacing
Reviewer Review Type Date Requested Status
Paweł Stołowski (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+168112@code.launchpad.net

Commit message

Surface notes on empty query (sorted by recency)

Description of the change

Surface notes on empty query

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Paweł Stołowski (stolowski) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/unity_tomboy_daemon.py'
2--- src/unity_tomboy_daemon.py 2013-04-23 11:01:36 +0000
3+++ src/unity_tomboy_daemon.py 2013-06-07 16:00:41 +0000
4@@ -86,7 +86,11 @@
5 results = []
6 if not tomboy:
7 return results
8- for note in tomboy.SearchNotes('(sb)', search, False):
9+ if search:
10+ tomboy_search = tomboy.SearchNotes('(sb)', search, False)
11+ else:
12+ tomboy_search = tomboy.ListAllNotes()
13+ for note in tomboy_search:
14 timestamp = tomboy.GetNoteChangeDate('(s)', note)
15 last_changed = datetime.datetime.fromtimestamp(timestamp).strftime('%x')
16 # Has anyone ever seen Tomboy tags?

Subscribers

People subscribed via source and target branches

to all changes: