- remove obsolete option static_only of Param.as_dict
- remove obsolete import of format_time - fix commit message Change-Id: Ie3a03694c5a40a0f3b86b2902a435131fd75e051 Reviewed-on: https://forge.frm2.tum.de/review/18191 Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de> Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
This commit is contained in:
@ -150,14 +150,14 @@ class Dispatcher(object):
|
||||
# return a copy of our list
|
||||
return self._export[:]
|
||||
|
||||
def list_module_params(self, modulename, only_static=False):
|
||||
def list_module_params(self, modulename):
|
||||
self.log.debug(u'list_module_params(%r)' % modulename)
|
||||
if modulename in self._export:
|
||||
# omit export=False params!
|
||||
res = {}
|
||||
for paramname, param in list(self.get_module(modulename).parameters.items()):
|
||||
if param.export:
|
||||
res[paramname] = param.as_dict(only_static)
|
||||
res[paramname] = param.as_dict()
|
||||
self.log.debug(u'list params for module %s -> %r' %
|
||||
(modulename, res))
|
||||
return res
|
||||
@ -186,7 +186,7 @@ class Dispatcher(object):
|
||||
# some of these need rework !
|
||||
mod_desc = {u'parameters': [], u'commands': []}
|
||||
for pname, param in list(self.list_module_params(
|
||||
modulename, only_static=True).items()):
|
||||
modulename).items()):
|
||||
mod_desc[u'parameters'].extend([pname, param])
|
||||
for cname, cmd in list(self.list_module_cmds(modulename).items()):
|
||||
mod_desc[u'commands'].extend([cname, cmd])
|
||||
|
Reference in New Issue
Block a user