Skip to content

Commit

Permalink
Made writing Blob less aggressive. (issue #42)
Browse files Browse the repository at this point in the history
  • Loading branch information
iham authored and jensens committed Oct 17, 2018
1 parent 1277e50 commit 3639dd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ New features:

Bug fixes:

- Made writing Blob less aggressive.(issue #42)
[iham]

- Remove (testing) dependency on zope.app.intid.
[gforcada]

Expand Down
4 changes: 3 additions & 1 deletion plone/app/versioningbehavior/modifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ def reattachReferencedAttributes(self, obj, attrs_dict):
fname = name.split('.')[-1]
field = iface.get(fname)
if field is not None: # Field may have been removed from schema
field.get(iface(obj))._blob = blob
adapted_field = field.get(iface(obj))
if adapted_field:
adapted_field._blob = blob

def getOnCloneModifiers(self, obj):
"""Removes references to blobs.
Expand Down

0 comments on commit 3639dd5

Please sign in to comment.