[tuxdroid-svn] r4723 - software_suite_v3/smart-core/smart-server/trunk/util/SimplePlugin
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-06-02 14:34:37
|
Author: remi
Date: 2009-06-02 16:34:29 +0200 (Tue, 02 Jun 2009)
New Revision: 4723
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/SimplePlugin/SimplePlugin.py
Log:
* added throwActuation method to the SimplePlugin class
Modified: software_suite_v3/smart-core/smart-server/trunk/util/SimplePlugin/SimplePlugin.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/SimplePlugin/SimplePlugin.py 2009-06-02 14:33:18 UTC (rev 4722)
+++ software_suite_v3/smart-core/smart-server/trunk/util/SimplePlugin/SimplePlugin.py 2009-06-02 14:34:29 UTC (rev 4723)
@@ -361,6 +361,19 @@
self.throwNotification("check_result", resultValue)
# --------------------------------------------------------------------------
+ # Throw an actuation to the framework.
+ # --------------------------------------------------------------------------
+ def throwActuation(self, content, *args):
+ """Throw an actuation to the framework.
+ @param content: Content of the message.
+ @param args: Arguments for the message.
+ """
+ tmp = [content,]
+ for arg in args:
+ tmp.append(arg)
+ self.throwNotification("actuation", *tmp)
+
+ # --------------------------------------------------------------------------
# Throw an error message to the plugins server.
# --------------------------------------------------------------------------
def throwError(self, message, force = False):
|