From 76a17f1dca758460d669f7bcf4a9b49b7fa15af7 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 27 Nov 2019 23:56:28 +0100 Subject: [PATCH 05/11] formdata: make LinkedFormdataSubstitutionProxy work in pickle-lazy mode To fixup with previous commit. --- wcs/formdata.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcs/formdata.py b/wcs/formdata.py index 976cb7ca..4189f7f6 100644 --- a/wcs/formdata.py +++ b/wcs/formdata.py @@ -819,6 +819,7 @@ class FormData(StorableObject): lazy = self.get_substitution_variables() del lazy['form'] del lazy['attachments'] + del lazy['linked'] d.update(lazy) d = copy.deepcopy(d) @@ -830,9 +831,11 @@ class FormData(StorableObject): from .qommon.substitution import CompatibilityNamesDict from wcs.variables import LazyFormData from wcs.workflows import AttachmentsSubstitutionProxy + from wcs.wf.create_formdata import LinkedFormdataSubstitutionProxy variables = CompatibilityNamesDict({ 'form': LazyFormData(self), 'attachments': AttachmentsSubstitutionProxy(self), + 'linked': LinkedFormdataSubstitutionProxy(self), }) if self.formdef.category: variables.update(self.formdef.category.get_substitution_variables(minimal=minimal)) -- 2.24.0