Skip to content

fix: get_content() signature compatibility with Frappe v16#1

Merged
Profit-Rocket merged 1 commit into
developfrom
fix/v16-get-content-signature
May 13, 2026
Merged

fix: get_content() signature compatibility with Frappe v16#1
Profit-Rocket merged 1 commit into
developfrom
fix/v16-get-content-signature

Conversation

@Profit-Rocket
Copy link
Copy Markdown

Mirror of upstream developmentforpeople/dfp_external_storage#44 ("fix: fix get_content() call for frappe v16 compatibility"), which is open but not yet merged.

Why we need this on our fork now

Profit Rocket runs frappe/erpnext:v16.17.0. Frappe v16's File.get_content() added an encodings parameter; our DFPExternalStorageFile.get_content() override was missing it, so any non-S3 file fetch raises:

```
TypeError: get_content() got an unexpected keyword argument 'encodings'
```

When this can be dropped

When upstream merges developmentforpeople#44, the next scripts/check_upstream_sync.sh run will flag this fork as REVIEW with one overlapping file (dfp_external_storage/dfp_external_storage/doctype/dfp_external_storage/dfp_external_storage.py). Resolve by accepting upstream and dropping this commit.

References

Mirrors upstream PR developmentforpeople#44,
which is open but not yet merged. Frappe v16's File.get_content()
gained an `encodings` parameter; the DFPExternalStorageFile
override was missing it, so any non-S3 file fetch crashed with
TypeError: get_content() got an unexpected keyword argument
'encodings'.

When upstream merges developmentforpeople#44, the next sync against
developmentforpeople/dfp_external_storage:develop will overlap
this file. Resolve by accepting upstream and dropping this patch.

Refs: Profit-Rocket-Ltd/framework#11

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Profit-Rocket Profit-Rocket merged commit 06a60e6 into develop May 13, 2026
@Profit-Rocket Profit-Rocket deleted the fix/v16-get-content-signature branch May 13, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant