This should fix #541 (a failed attempt was
04c66a3768cc5a5a2af0ba0d508daf6cbb391c3f).

Three years later, but better late than never? In fact, I'm not sure
that holds true.

Signed-off-by: Paul Fertser <fercer...@gmail.com>
---
 framework/subsystems/oeventsd/fso_triggers.py |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/framework/subsystems/oeventsd/fso_triggers.py 
b/framework/subsystems/oeventsd/fso_triggers.py
index 8c1006c..17ae2e6 100644
--- a/framework/subsystems/oeventsd/fso_triggers.py
+++ b/framework/subsystems/oeventsd/fso_triggers.py
@@ -52,14 +52,16 @@ class CallListContains(WhileRule):
     function_name = "CallListContains"
 
     def __init__(self, status):
-        self.status = status
+        self.status = status.lower()
         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() ) or ( self.status.lower() in 
self.calls.values() ):
+        self.calls[id] = None
+        if status:
+            self.calls[id] = status.lower()
+        if self.status in self.calls.values()
             super(CallListContains, self).trigger()
         else:
             super(CallListContains, self).untrigger()
-- 
1.7.10


_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to