Bug hunting and polishing

Change-Id: I0f05730dd4e01e926ab0c4870c27ed5754f3ccfd
This commit is contained in:
Enrico Faulhaber
2017-01-20 18:21:27 +01:00
parent 8e3d0da5dd
commit d5e935788f
18 changed files with 552 additions and 202 deletions

View File

@@ -45,6 +45,7 @@ from messages import *
from errors import *
from secop.lib.parsing import format_time
class Dispatcher(object):
def __init__(self, logger, options):
@@ -205,7 +206,7 @@ class Dispatcher(object):
def get_descriptive_data(self):
# XXX: be lazy and cache this?
result = {'modules':{}}
result = {'modules': {}}
for modulename in self._export:
module = self.get_module(modulename)
# some of these need rework !
@@ -335,9 +336,9 @@ class Dispatcher(object):
res = self._setParamValue(msg.module, 'target', msg.value)
res.parameter = 'target'
# self.broadcast_event(res)
if conn in self._active_connections:
return None # already send to myself
return res # send reply to inactive conns
# if conn in self._active_connections:
# return None # already send to myself
return res
def handle_Command(self, conn, msg):
# notify all by sending CommandReply