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,9 +51,9 @@ 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):
......@@ -73,7 +73,6 @@ class Attributes(list):
k.value = value
return
raise KeyError(name)
class Device(object):
......
......@@ -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