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

Lining


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@3136 b32b6428-25c9-4566-ad07-03861ab6144f
parent 1b8d5fc7
Branches
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ import sys
import logging
logger = logging.getLogger(__name__)
ALIVE_ADDR=UUID('00000000-0000-0000-0000-000000000000')
ALIVE_ADDR = UUID("00000000-0000-0000-0000-000000000000")
class MessageFactory(object):
......@@ -206,6 +206,7 @@ class MessageFactory(object):
message = self.build_msg(dev, [], MessageType.NOTIFY, "error", body)
return message
class MessageType(Enum):
NOTIFY = 0
REQUEST = 1
......@@ -213,7 +214,7 @@ class MessageType(Enum):
class MessageAction(Enum):
ALIVE = 'alive'
ALIVE = "alive"
IS_ALIVE = "is_alive"
ATTRIBUTES_CHANGE = "attributes_change"
GET_ATTRIBUTES = "get_attributes"
......@@ -289,7 +290,6 @@ class Message(object):
return False
def is_alive(self):
# if self.is_notify() and self.action == 'alive':
if self.is_notify() and self.action == MessageAction.ALIVE.value:
return True
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment