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

backport dexterity copy flag patch. #3

Merged
merged 1 commit into from
Sep 1, 2016
Merged

Conversation

jone
Copy link
Member

@jone jone commented Sep 1, 2016

⚠️ cherry-pick / copy of #1 because of git user error 😜

Problem:

When copying a DX container which has AT children, the UID of the AT
children was not updated.
The reason for the error is that the DX container copy did not have the
_v_is_cp flag while the AT children were processed and thus the flag
was not properly delegated.

Solution:

By copying the _v_is_cp and _v_cp_refs flags to the copy we have the
same behavior as it used to be with AT, which does fix the error.

'</configure>',
context=configurationContext)

def setUpPloneSite(self, portal):
pass
z2.installProduct(app, 'ftw.copymovepatches')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maethu seems you've removed that? the initialize method is still there. Should we remove both or keep both?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove both

@jone jone force-pushed the jone-dexterity-copy-flags branch 4 times, most recently from 6d2b05a to 75262c9 Compare September 1, 2016 09:34
xmlns="http://namespaces.zope.org/zope"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
xmlns:i18n="http://namespaces.zope.org/i18n"
i18n_domain="bl.web">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bl.web?

@jone jone force-pushed the jone-dexterity-copy-flags branch from 75262c9 to 3df04c1 Compare September 1, 2016 09:36
i18n_domain="bl.web">

<genericsetup:registerProfile
title="bl.web.tests"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bl.web?

**Problem:**

When copying a DX container which has AT children, the UID of the AT
children was not updated.
The reason for the error is that the DX container copy did not have the
`_v_is_cp` flag while the AT children were processed and thus the flag
was not properly delegated.

**Solution:**

By copying the `_v_is_cp` and `_v_cp_refs flags` to the copy we have the
same behavior as it used to be with AT, which does fix the error.

- Issue: plone/Products.CMFPlone#1735
- Plone 4 fix: plone/plone.dexterity#60
- Plone 5 fix: plone/plone.dexterity#61
@jone jone force-pushed the jone-dexterity-copy-flags branch from 3df04c1 to 4dc42bc Compare September 1, 2016 09:37
@maethu maethu merged commit f0d6d25 into master Sep 1, 2016
@maethu maethu deleted the jone-dexterity-copy-flags branch September 1, 2016 09:39
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.

2 participants