[kupfer] objects: Add Action.has_result method



commit e0ef5bf7500ba10cd71edaf7e0ea08b3aae8b438
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Wed Sep 9 19:06:11 2009 +0200

    objects: Add Action.has_result method

 kupfer/objects.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/kupfer/objects.py b/kupfer/objects.py
index 85ac729..68ba8af 100644
--- a/kupfer/objects.py
+++ b/kupfer/objects.py
@@ -488,10 +488,11 @@ class Action (KupferObject):
 		pass
 
 	def is_factory(self):
-		"""
-		If this action returns a new source in activate
-		return True
-		"""
+		"""Return whether action may return a result collection as a Source"""
+		return False
+
+	def has_result(self):
+		"""Return whether action may return a result item as a Leaf"""
 		return False
 
 	def is_async(self):



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