[tuxdroid-svn] r5266 - software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_i
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-08-01 12:02:21
|
Author: remi
Date: 2009-08-01 14:02:07 +0200 (Sat, 01 Aug 2009)
New Revision: 5266
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
Log:
* Added a debug message.
* Updated the way to know if a new alert is the same as a previously stacked one.
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-08-01 11:59:59 UTC (rev 5265)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py 2009-08-01 12:02:07 UTC (rev 5266)
@@ -171,6 +171,7 @@
expirationDelay = self.getPluginCommand().getExpirationDelay()
if expirationDelay > 0:
if (time.time() - self.__createTime) > expirationDelay:
+ print "PGU context [%s] : Execution aborted (Context expiration)" % self.getPguName()
return
self.__startStopPauseMutex.acquire()
self.__execStarted = True
@@ -716,8 +717,9 @@
(not pguContext.isDaemon()):
self.__pguContextsMutex.acquire()
for i, regPguContext in enumerate(self.__pguContexts):
- if regPguContext.getPluginCommand() == pguContext.getPluginCommand():
- # Replace the context with the same plugin command.
+ if regPguContext.getPguName() == pguContext.getPguName():
+ # Replace the context with the same pgu name.
+ print "PGU context [%s] updated in stack" % pguContext.getPguName()
self.__pguContexts[i] = pguContext
self.__pguContextsMutex.release()
self.__ugcInsertionMutex.release()
|