changeset 2378:3704cb959ae8

plugin schema: deserialise is now the last kw argument
author Goffi <goffi@goffi.org>
date Mon, 16 Oct 2017 07:23:09 +0200
parents e50aee5caf33
children 42a54cbc1872
files src/plugins/plugin_exp_pubsub_schema.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_exp_pubsub_schema.py	Mon Oct 16 07:21:44 2017 +0200
+++ b/src/plugins/plugin_exp_pubsub_schema.py	Mon Oct 16 07:23:09 2017 +0200
@@ -243,12 +243,12 @@
             schema = generic.parseXml(schema.encode('utf-8'))
         else:
             schema = None
-        d = self.sendDataFormItem(client, service, nodeIdentifier, values, schema, True, item_id or None, extra)
+        d = self.sendDataFormItem(client, service, nodeIdentifier, values, schema, item_id or None, extra, deserialise=True)
         d.addCallback(lambda ret: ret or u'')
         return d
 
     @defer.inlineCallbacks
-    def sendDataFormItem(self, client, service, nodeIdentifier, values, schema=None, deserialise=False, item_id=None, extra=None):
+    def sendDataFormItem(self, client, service, nodeIdentifier, values, schema=None, item_id=None, extra=None, deserialise=False):
         """Publish an item as a dataform when we know that there is a schema
 
         @param values(dict[[iterable[object], object]): values set for the form