-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Inconsistences when applying Worksheet Templates #499
Conversation
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 would suggest to open another PR to fix the unresolved position
variable in workflow_script_reject
. Approving to get forward...
self.request['context_uid'] = self.context.UID() | ||
self.context.addDuplicateAnalyses(src_slot, position) | ||
self.context.addDuplicateAnalyses(src_slot) |
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.
@xispa reminder: revert this change, I was not aware that there is a selector in "Add Duplicate" to allow the user to choose the slot to use. That selector has the next available slot option selected by default instead of "new slot" option. If a WSTemplate is assigned to the WS, better to select the latter option as default.
Thanks @ramonski for your code improvements!. I will open another PR to fix the unresolved |
Description of the issue/feature this PR addresses
Applying Worksheet Template to a Worksheet had some inconsistences that have been fixed with this PR, along with the following issues:
Linked issues:
Current behavior before PR
Inconsistent behavior with duplicates, references, analyses when using Worksheet Templates.
Desired behavior after PR is merged
Consistent behavior with duplicates, references, analyses when using Worksheet Templates.
--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.