[kupfer] notes: Use better repr_key for notes
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] notes: Use better repr_key for notes
- Date: Tue, 12 Jan 2010 23:13:14 +0000 (UTC)
commit 0bcbcf0d918616cda54826f68a9c70c7f6c8c8a8
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Jan 12 18:43:27 2010 +0100
notes: Use better repr_key for notes
kupfer/plugin/notes.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/notes.py b/kupfer/plugin/notes.py
index 4f83968..1c5571f 100644
--- a/kupfer/plugin/notes.py
+++ b/kupfer/plugin/notes.py
@@ -169,6 +169,9 @@ class Note (Leaf):
Leaf.__init__(self, obj, name)
def get_actions(self):
yield Open()
+ def repr_key(self):
+ # the Note URI is unique&persistent for each note
+ return self.object
def get_description(self):
today_date = time.localtime()[:3]
yest_date = time.localtime(time.time() - 3600*24)[:3]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]