[kupfer] triggers: Define repr_key for trigger objects



commit ee98885f574ed5cd66c454c4e0cbe3314936b2ee
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sat Jan 9 04:03:21 2010 +0100

    triggers: Define repr_key for trigger objects

 kupfer/plugin/triggers.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/triggers.py b/kupfer/plugin/triggers.py
index 338599c..f1cd244 100644
--- a/kupfer/plugin/triggers.py
+++ b/kupfer/plugin/triggers.py
@@ -28,6 +28,8 @@ class Trigger (RunnableLeaf):
 		yield RemoveTrigger()
 	def run(self):
 		return Triggers.perform_trigger(self.object)
+	def repr_key(self):
+		return self.object
 
 class Triggers (Source):
 	instance = None



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