Commit aaffc189 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

[BFSS] mark fs_imported value as uncachable

This will finally fix the `test_bfss_fs_importing_transparency` pass again.

Regression was introduced by 4ba11607d84a
parent 4d24ac49f90d
......@@ -152,6 +152,7 @@ class BytesFileSystemStorage(Storage):
"""an entity using this storage for attr has been added"""
if entity._cw.transaction_data.get('fs_importing'):
binary = Binary.from_file(entity.cw_edited[attr].getvalue())
entity._cw_dont_cache_attribute(attr, repo_side=True)
binary = entity.cw_edited.pop(attr)
fpath = self.new_fs_path(entity, attr)
......@@ -170,6 +171,7 @@ class BytesFileSystemStorage(Storage):
# We do not need to create it but we need to fetch the content of
# the file as the actual content of the attribute
fpath = entity.cw_edited[attr].getvalue()
entity._cw_dont_cache_attribute(attr, repo_side=True)
assert fpath is not None
binary = Binary.from_file(fpath)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment