Skip to content
New issue

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

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

Already on GitHub? # to your account

Wrong class name memberdata.MemberData? #60

Open
d-maurer opened this issue Mar 26, 2021 · 0 comments
Open

Wrong class name memberdata.MemberData? #60

d-maurer opened this issue Mar 26, 2021 · 0 comments

Comments

@d-maurer
Copy link

"https://community.plone.org/t/migration-error-v5-1-6-to-v5-2-4-cache-values-must-be-persistent-objects/13626" reports a migration problem which almost surely results from a change in the persistency of memberdata.MemberData which formerly was persistent and now is a temporary adapter. Changing the persistency of a class is a very bad idea because it makes it almost impossible to load existing class instances from the ZODB.

Products.CMFCore.MemberDataTool (the conceptual base for memberdata) has two classes: the persistent MemberData class to actually store member properties and the temporary MemberDataAdapter as an adaptation/integration point. I suggest that memberdata follows this structure and use MemberDataAdapter for its current MemberData; to avoid migration problems, it likely should also define a new class MemberData as a wrapper of that of CMFCore.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant