Commit fea87b6c authored by Jérome Perrin's avatar Jérome Perrin

default name to id here, to be able to instanciate CoreObjects with **element

parent e28e29f7
......@@ -242,6 +242,8 @@ def createObjects():
for (element_id, element) in nodes.iteritems():
element = element.copy()
element['id'] = element_id
element.setdefault('name', element_id)
# XXX not sure about top & left.
for k in ('element_id', 'top', 'left'):
element.pop(k, None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment