Author: remi
Date: 2009-06-10 13:45:57 +0200 (Wed, 10 Jun 2009)
New Revision: 4775
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
Log:
* added rules for plugin commands daemon-notifier
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
===================================================================
---
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
2009-06-10 11:45:31 UTC (rev 4774)
+++
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
2009-06-10 11:45:57 UTC (rev 4775)
@@ -170,7 +170,8 @@
def stopExecution(self):
"""
"""
- self.__pluginInterpreterContext.abort()
+ if not self.getPluginCommand().isNotifier():
+ self.__pluginInterpreterContext.abort()
if not self.executionIsStarted():
return
print "Stop execution of PGU context [%s]" % self.getPguName()
@@ -182,11 +183,12 @@
self.__breakMessage()
self.__breakActuation()
print "Execution of PGU context [%s] stopped" % self.getPguName()
- if self.getContextLayer() == PGU_CONTEXT_LAYER_SCHEDULER:
- resourceTuxDriver.playSound(15, 100.0)
- else:
- resourceTuxDriver.playSound(16, 100.0)
- time.sleep(0.5)
+ if not self.getPluginCommand().isNotifier():
+ if self.getContextLayer() == PGU_CONTEXT_LAYER_SCHEDULER:
+ resourceTuxDriver.playSound(15, 100.0)
+ else:
+ resourceTuxDriver.playSound(16, 100.0)
+ time.sleep(0.5)
def pauseExecution(self):
"""
@@ -281,11 +283,12 @@
def __executionLoop(self):
"""
"""
- if self.getContextLayer() == PGU_CONTEXT_LAYER_SCHEDULER:
- resourceTuxDriver.playSound(14, 100.0)
- else:
- resourceTuxDriver.playSound(13, 100.0)
- time.sleep(0.5)
+ if not self.getPluginCommand().isNotifier():
+ if self.getContextLayer() == PGU_CONTEXT_LAYER_SCHEDULER:
+ resourceTuxDriver.playSound(14, 100.0)
+ else:
+ resourceTuxDriver.playSound(13, 100.0)
+ time.sleep(0.5)
while self.executionIsStarted():
while self.executionIsPaused():
time.sleep(0.1)
@@ -297,11 +300,12 @@
self.__execPaused = False
self.__startStopPauseMutex.release()
print "Execution of PGU context [%s] stopped" %
self.getPguName()
- if self.getContextLayer() == PGU_CONTEXT_LAYER_SCHEDULER:
- resourceTuxDriver.playSound(15, 100.0)
- else:
- resourceTuxDriver.playSound(16, 100.0)
- time.sleep(0.5)
+ if not self.getPluginCommand().isNotifier():
+ if self.getContextLayer() ==
PGU_CONTEXT_LAYER_SCHEDULER:
+ resourceTuxDriver.playSound(15, 100.0)
+ else:
+ resourceTuxDriver.playSound(16, 100.0)
+ time.sleep(0.5)
return
else:
print "Execute event from PGU context [%s] :" %
self.getPguName()
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn