Skip to content
Snippets Groups Projects
Commit d8835c2d authored by jkerdreu's avatar jkerdreu
Browse files

Fixe old style name



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2735 b32b6428-25c9-4566-ad07-03861ab6144f
parent e30cef09
Branches
No related tags found
No related merge requests found
......@@ -156,19 +156,19 @@ class Engine(object):
#####################################################
# xAAL attributes changes
#####################################################
def add_attributesChange(self, attr):
def add_attributes_change(self, attr):
"""add a new attribute change to the list"""
self.__attributesChange.append(attr)
def get_attributesChange(self):
def get_attributes_change(self):
"""return the pending attributes changes list"""
return self.__attributesChange
def process_attributesChange(self):
def process_attributes_change(self):
"""Processes (send notify) attributes changes for all devices"""
devices = {}
# Group attributes changed by device
for attr in self.get_attributesChange():
for attr in self.get_attributes_change():
if attr.device not in devices.keys():
devices[attr.device] = {}
devices[attr.device][attr.name] = attr.value
......@@ -205,7 +205,7 @@ class Engine(object):
if msg:
for func in self.subscribers:
func(msg)
self.process_attributesChange()
self.process_attributes_change()
def handle_request(self, msg):
"""Filter msg for devices according default xAAL API then process the
......@@ -299,7 +299,7 @@ class Engine(object):
# Process timers
self.process_timers()
# Process attributes change for devices due to timers
self.process_attributesChange()
self.process_attributes_change()
# Process Alives
self.process_alives()
# Process xAAL msgs to send
......
......@@ -48,7 +48,7 @@ class Attribute(object):
if value != self.__value:
eng = self.device.engine
if eng:
eng.add_attributesChange(self)
eng.add_attributes_change(self)
logger.debug("Attr change %s %s=%s" % (self.device.address,self.name,value))
self.__value = value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment