Show
Ignore:
Timestamp:
11/19/08 06:46:52 (3 years ago)
Author:
chris
Branch:
CAP_1.1
Message:

clean spaces out of areas from the CAP atom so that the area matching works again

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • StormSiren/AlertDevice.py

    r160 r170  
    138138                if(self.__areas.has_key(state)): 
    139139                        for area in alert_areas: 
     140                                self.log.debug("checking if %s is in (%s)" % (area.lower(),self.__areas[state])) 
    140141                                if(area.lower() in self.__areas[state]): 
     142                                        self.log.debug("%s IS IN (%s)" % (area.lower(),self.__areas[state])) 
    141143                                        return True 
    142144                return False 
     
    149151                                self.log.debug("Alert hit on area[%s/%s]: %s" % (cap_alert.state, cap_alert.id, cap_alert.areas)) 
    150152                                return True 
     153                        else: 
     154                                self.log.debug("Testing[%s]: alert not in watched area(%s/%s)" % (cap_alert.id, cap_alert.state, cap_alert.areas)) 
     155                else: 
     156                        self.log.debug("Testing[%s]: Either wrong type or state (%s/%i)" % (cap_alert.id, cap_alert.state, cap_alert.type)) 
    151157                return False 
    152158#CODE END