[tuxdroid-svn] r4800 - software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-06-12 08:17:24
|
Author: remi
Date: 2009-06-12 10:16:17 +0200 (Fri, 12 Jun 2009)
New Revision: 4800
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/01_resourcePluginsServer.py
Log:
* added support of alerts type "check" (throwResult)
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/01_resourcePluginsServer.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/01_resourcePluginsServer.py 2009-06-12 08:15:15 UTC (rev 4799)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/01_resourcePluginsServer.py 2009-06-12 08:16:17 UTC (rev 4800)
@@ -194,6 +194,9 @@
def __onPluginResult(self, pluginInterpreterContext, pluginResult):
plugin = pluginInterpreterContext.getParentPlugin()
+ if str(pluginResult).lower() == "true":
+ resourceRobotContentInteractions.getPguContextsManager().createPguContext(
+ pluginInterpreterContext)
self.logger.logDebug("Plugin RESULT [%s] (%s)" % (
plugin.getDescription().getName(), str(pluginResult)))
@@ -224,7 +227,7 @@
plugin.getDescription().getName(),
str(pluginInterpreterContext.getInstanceParameters())))
command = plugin.getCommand(pluginInterpreterContext.getInstanceCommandName())
- if not command.isNotifier():
+ if (not command.isNotifier()) and (command.getName() == "run"):
resourceRobotContentInteractions.getPguContextsManager().createPguContext(
pluginInterpreterContext)
|