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()


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to