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

Fix wrong message bug

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@1943 b32b6428-25c9-4566-ad07-03861ab6144f
parent b51daeeb
Branches
No related tags found
No related merge requests found
......@@ -51,8 +51,8 @@ class Attribute(object):
logger.debug("Attr change %s=%s" % (self.name,value))
self.__value = value
def __str__(self):
return "attr: %s value: %s" % (self.name, self.value)
def __repr__(self):
return "<xaal.lib.devices.Attribute: '%s' at 0x%x>" % (self.name, id(self))
class Attributes(list):
......@@ -74,7 +74,6 @@ class Attributes(list):
return
raise KeyError(name)
class Device(object):
def __init__(self,devtype,addr=None,engine=None):
......
......@@ -150,6 +150,9 @@ class MessageFactory(object):
body[name] = value
msg.body = body
# Sanity check incomming message
if msg.source == None:
raise MessageParserError("Wrong message source == None")
return msg
#####################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment