plugin schema: prepend a "publisher" field after "id" in getDataFormItems with published given by PubSub service

This commit is contained in:
Goffi 2017-11-11 18:34:21 +01:00
commit b3dcb3a490

View file

@ -239,7 +239,10 @@ class PubsubSchema(object):
xmlui = xml_tools.dataFormResult2XMLUI(
form,
schema_form,
prepend = (('label', 'id'),('text', item_elt['id'], u'id')),
# FIXME: conflicts with schema (i.e. if "id" or "publisher" already exists)
# are not checked
prepend = (('label', 'id'),('text', item_elt['id'], u'id'),
('label', 'publisher'),('text', item_elt.getAttribute('publisher',''), u'publisher')),
filters = filters,
)
items_xmlui.append(xmlui)