-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Allows versioning of the Plone Site type for the portal working copy to work #113
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,9 @@ | |
<policy name="at_edit_autoversion" /> | ||
<policy name="version_on_revert" /> | ||
</type> | ||
<type name="Plone Site"> | ||
<policy name="at_edit_autoversion" /> | ||
<policy name="version_on_revert" /> | ||
</type> | ||
Comment on lines
+29
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure whether I should do an upgrade step for this or just leave it for new portals. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would leave it just for new portals, but we should mention that in the release note. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the text |
||
</policymap> | ||
</repositorytool> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Allows versioning of the Plone Site type for the portal working copy to work. @wesleybl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the ImplicitAcquisitionWrapper probably comes from a child object, not the parent pointer. And I expect #117 will solve this so that we don't need this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davisagli after the merge of #117, I rebased it with the master branch here. After that, the code:
is no longer needed. Thanks!
But the code:
is still needed. Without it, I get the error below when trying to checkout in Volto:
The strange thing is that in Plone Classic the checkout works without it. So, it's something related to
plone.restapi
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm actually both ifs are needed yet. Without the first if, checkout works but checkin gives an error:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prevents including references to the portal when an object is serialized while cloning. I need to understand better where that reference is in order to see if we want to remove it or restore it, but I haven't been successful at debugging this yet.
Also if we do need special logic to handle this, this isn't the right place for it, because it's not (I think) about parent pointers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding my notes since I need to stop for the day:
_components
attribute of the portal (the site manager)AttributeError: 'NoneType' object has no attribute 'objectIds'
errorThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davisagli I'm not remembering exactly now but I think I've come to the conclusion that
archiver.isVersionable()
will betrue
only if versioning is enabled for the content type.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plone Site has several attributes of type
ImplicitAcquisitionWrapper
. Not only_components
.