Commit 484b9817 authored by Jérome Perrin's avatar Jérome Perrin

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

parent 971b4ec7
......@@ -261,6 +261,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