[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819

Michael 'Mickey' Lauer mickey at vanille-media.de
Sat Aug 6 08:19:43 UTC 2011


The following commit has been merged in the debian branch:
commit 04c66a3768cc5a5a2af0ba0d508daf6cbb391c3f
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Thu Apr 15 17:28:13 2010 +0200

    oeventsd: give call status a 2nd chance to match in lowercase
    
    NOTE: This should fix interoperability with fsogsmd

diff --git a/framework/subsystems/oeventsd/fso_triggers.py b/framework/subsystems/oeventsd/fso_triggers.py
index 29dce50..b3f648b 100644
--- a/framework/subsystems/oeventsd/fso_triggers.py
+++ b/framework/subsystems/oeventsd/fso_triggers.py
@@ -42,27 +42,27 @@ class CallStatusTrigger(DBusTrigger):
 
     def __repr__(self):
         return "CallStatus"
-        
+
 # TODO: Maybe this should be an instance of a special class (Condition ?)
 #============================================================================#
 class CallListContains(WhileRule):
 #============================================================================#
     """This rule keep track of all the calls, and can be used to check for a given status in one of them"""
     function_name = "CallListContains"
-    
+
     def __init__(self, status):
         self.status = status
         self.calls = {} # The list of current call object
         super(CallListContains, self).__init__(CallStatusTrigger())
-        
+
     def trigger(self, id=None, status=None, properties=None, **kargs):
         logger.debug("Trigger %s", self)
         self.calls[id] = status
-        if self.status in self.calls.values():
+        if ( self.status in self.calls.values() ) or ( self.status.lower() in self.calls.values() ):
             super(CallListContains, self).trigger()
         else:
             super(CallListContains, self).untrigger()
-            
+
     def __repr__(self):
         return "CallListContains(%s)" % self.status
 

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list