Mercurial > libervia-backend
changeset 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 | 59636c4db2d0 |
children | a49a19f06e38 |
files | src/plugins/plugin_exp_pubsub_schema.py |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
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))