Mercurial > libervia-backend
diff src/plugins/plugin_exp_pubsub_schema.py @ 2381:72c30e73a9a5
plugin schema: use new "prepend" argument to put "id" widget first.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 16 Oct 2017 07:36:41 +0200 |
parents | 3704cb959ae8 |
children | 2e05921df16a |
line wrap: on
line diff
--- a/src/plugins/plugin_exp_pubsub_schema.py Mon Oct 16 07:36:03 2017 +0200 +++ b/src/plugins/plugin_exp_pubsub_schema.py Mon Oct 16 07:36:41 2017 +0200 @@ -228,9 +228,11 @@ form = data_form.Form.fromElement(x_elt) if form_ns and form.formNamespace != form_ns: continue - xmlui = xml_tools.dataFormResult2XMLUI(form, schema_form) - xmlui.addLabel('id') - xmlui.addText(item_elt['id'], name='id') + xmlui = xml_tools.dataFormResult2XMLUI( + form, + schema_form, + prepend = (('label', 'id'),('text', item_elt['id'], u'id')) + ) items_xmlui.append(xmlui) break defer.returnValue((items_xmlui, metadata))