# HG changeset patch # User Goffi # Date 1510421661 -3600 # Node ID 6c39f30444a085ebb33576deedf4e740b8543ca9 # Parent d294527bd46f9d1fbb38d0c196e61cd18122f0b7 plugin schema: prepend a "publisher" field after "id" in getDataFormItems with published given by PubSub service diff -r d294527bd46f -r 6c39f30444a0 src/plugins/plugin_exp_pubsub_schema.py --- a/src/plugins/plugin_exp_pubsub_schema.py Thu Nov 09 07:54:28 2017 +0100 +++ b/src/plugins/plugin_exp_pubsub_schema.py Sat Nov 11 18:34:21 2017 +0100 @@ -239,7 +239,10 @@ 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)