comparison sat/plugins/plugin_misc_lists.py @ 3928:6c36eb30afb8

plugin lists: fix deserialisation on listSet
author Goffi <goffi@goffi.org>
date Thu, 06 Oct 2022 17:22:21 +0200
parents 5f65f4e9f8cb
children 0a6d4168968a
comparison
equal deleted inserted replaced
3927:328869756cf4 3928:6c36eb30afb8
319 log.debug("no type found in list schema") 319 log.debug("no type found in list schema")
320 else: 320 else:
321 list_elt = extra["element"] = domish.Element((APP_NS_TICKETS, "list")) 321 list_elt = extra["element"] = domish.Element((APP_NS_TICKETS, "list"))
322 list_elt["type"] = field_type 322 list_elt["type"] = field_type
323 323
324 def _set(self, service, node, values, schema=None, item_id=None, extra='', 324 def _set(self, service, node, values, schema=None, item_id=None, extra_s='',
325 profile_key=C.PROF_KEY_NONE): 325 profile_key=C.PROF_KEY_NONE):
326 client, service, node, schema, item_id, extra = self._s.prepareBridgeSet( 326 client, service, node, schema, item_id, extra = self._s.prepareBridgeSet(
327 service, node, schema, item_id, extra, profile_key 327 service, node, schema, item_id, data_format.deserialise(extra_s), profile_key
328 ) 328 )
329 d = defer.ensureDeferred(self.set( 329 d = defer.ensureDeferred(self.set(
330 client, service, node, values, schema, item_id, extra, deserialise=True 330 client, service, node, values, schema, item_id, extra, deserialise=True
331 )) 331 ))
332 d.addCallback(lambda ret: ret or "") 332 d.addCallback(lambda ret: ret or "")