Projet

Général

Profil

0005-formdata-make-LinkedFormdataSubstitutionProxy-work-i.patch

Benjamin Dauvergne, 23 janvier 2020 15:42

Télécharger (1,36 ko)

Voir les différences:

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(+)
wcs/formdata.py
819 819
        lazy = self.get_substitution_variables()
820 820
        del lazy['form']
821 821
        del lazy['attachments']
822
        del lazy['linked']
822 823
        d.update(lazy)
823 824

  
824 825
        d = copy.deepcopy(d)
......
830 831
        from .qommon.substitution import CompatibilityNamesDict
831 832
        from wcs.variables import LazyFormData
832 833
        from wcs.workflows import AttachmentsSubstitutionProxy
834
        from wcs.wf.create_formdata import LinkedFormdataSubstitutionProxy
833 835
        variables = CompatibilityNamesDict({
834 836
            'form': LazyFormData(self),
835 837
            'attachments': AttachmentsSubstitutionProxy(self),
838
            'linked': LinkedFormdataSubstitutionProxy(self),
836 839
        })
837 840
        if self.formdef.category:
838 841
            variables.update(self.formdef.category.get_substitution_variables(minimal=minimal))
839
-