[kupfer] plugin.notes: AppendToNote uses NotesSource explicitly



commit d5cff46074a73f66cd06fa46deafa6fc2e12df2e
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri Aug 28 19:22:16 2009 +0200

    plugin.notes: AppendToNote uses NotesSource explicitly
    
    As long as it only uses the Note leaf, there is no use for it to use
    the catalog; it should use the NotesSource directly.

 kupfer/plugin/notes.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/notes.py b/kupfer/plugin/notes.py
index b97b90a..fefd6c0 100644
--- a/kupfer/plugin/notes.py
+++ b/kupfer/plugin/notes.py
@@ -88,6 +88,8 @@ class AppendToNote (Action):
 		return True
 	def object_types(self):
 		yield Note
+	def object_source(self, for_item=None):
+		return NotesSource()
 	def get_description(self):
 		return _("Add text to existing note")
 	def get_icon_name(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]