parent
ef35c957b2
commit
65137f294e
1 changed files with 5 additions and 2 deletions
|
@ -295,11 +295,14 @@ class Engine(object):
|
|||
self._current_module = module
|
||||
module.update_wrapper(module.widgets())
|
||||
if module.error is None:
|
||||
widget_ids = module.parameter('id', '').split(',')
|
||||
widget_ids = []
|
||||
if module.parameter('id'):
|
||||
widget_ids = module.parameter('id').split(',')
|
||||
idx = 0
|
||||
for widget in module.widgets():
|
||||
widget.link_module(module)
|
||||
widget.id = widget_ids[idx] if idx < len(widget_ids) else widget.id
|
||||
if idx < len(widget_ids):
|
||||
widget.id = widget_ids[idx]
|
||||
idx = idx + 1
|
||||
self._output.draw(widget=widget, module=module, engine=self)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue