Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace (in "OFS") deprecated direct "id" access by "getId" calls #907

Merged
merged 8 commits into from Feb 10, 2021

Conversation

d-maurer
Copy link
Contributor

@d-maurer d-maurer commented Oct 7, 2020

Direct id access is deprecated (for OFS.SimpleItem.Item instances). However, at some places (e.g. in export/import) it was still used in OFS. This has caused #903 .

The PR replaces most occurrences of direct id access by calls to getId (provided the object has an unacquired getId). The direct id accesses in OFS.Traversable.Traversable.getPhysicalPath are retained (this might give wrong results for (likely rare) objects with both id and __name__ with diverging values).

Fixes #903.

@icemac
Copy link
Member

icemac commented Oct 9, 2020

Has there still something to be done before this PR can be merged?

@dataflake dataflake merged commit 0feec5f into 4.x Feb 10, 2021
@dataflake dataflake deleted the OFS_avoid_direct_id_access#903 branch February 10, 2021 09:55
dataflake added a commit that referenced this pull request Feb 10, 2021
* Replace (in "OFS") deprecated direct "id" access by "getId" calls

* make (test) temporary file creation more robust

* make flake8 happy

Co-authored-by: Jens Vagelpohl <jens@netz.ooo>
Co-authored-by: Michael Howitz <mh@gocept.com>
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.

None yet

3 participants