plugin schema: use new "prepend" argument to put "id" widget first.
This commit is contained in:
parent
b8839b97e4
commit
b5daa89208
1 changed files with 5 additions and 3 deletions
|
|
@ -228,9 +228,11 @@ class PubsubSchema(object):
|
|||
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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue