comparison sat/plugins/plugin_misc_lists.py @ 3930:0a6d4168968a

plugin lists: fix double deserialisation
author Goffi <goffi@goffi.org>
date Thu, 06 Oct 2022 17:50:54 +0200
parents 6c36eb30afb8
children 6c5f0fbc519b
comparison
equal deleted inserted replaced
3929:42d3110ac9b1 3930:0a6d4168968a
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_s='', 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, data_format.deserialise(extra_s), profile_key 327 service, node, schema, item_id, 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 "")