Skip to content

Commit

Permalink
Merge pull request #88 from zopefoundation/maurits/issue-86-persisten…
Browse files Browse the repository at this point in the history
…t-toolset-master

Force saving unpersisted changes in toolset registry. [master]
  • Loading branch information
mauritsvanrees committed Dec 9, 2019
2 parents 03fde58 + dc0d93c commit 88f9289
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
2.0.2 (unreleased)
------------------

- Nothing changed yet.
- Force saving unpersisted changes in toolset registry.
Fixes `issue 86 <https://github.com/zopefoundation/Products.GenericSetup/issues/86>`_.


2.0.1 (2019-10-12)
Expand Down
3 changes: 3 additions & 0 deletions Products/GenericSetup/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def importToolset(context):
toolset = setup_tool.getToolsetRegistry()

toolset.parseXML(xml, encoding)
# Force a safe so changes in simple lists and dicts are persisted.
# https://github.com/zopefoundation/Products.GenericSetup/issues/86
setup_tool._p_changed = True

existing_ids = site.objectIds()

Expand Down

0 comments on commit 88f9289

Please sign in to comment.