Skip to content

Commit

Permalink
- fixed the "Configured PAS" factory (fixes #39)
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Apr 13, 2019
1 parent e48f433 commit 68ab2a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Change Log

2.0 (unreleased)
----------------
- fixed the "Configured PAS" factory
(`#39 <https://github.com/zopefoundation/Products.PluggableAuthService/issues/39>`_)

- styled "Configured PAS" add dialog for the Zope 4 ZMI
(`#38 <https://github.com/zopefoundation/Products.PluggableAuthService/issues/38>`_)

Expand Down
8 changes: 2 additions & 6 deletions Products/PluggableAuthService/PluggableAuthService.py
Original file line number Diff line number Diff line change
Expand Up @@ -1420,14 +1420,10 @@ def addConfiguredPAS(dispatcher, base_profile, extension_profiles=(),
pas._setObject(tool.getId(), tool)

tool = pas._getOb(tool.getId()) # wrapped
tool.setImportContext('profile-%s' % base_profile)
tool.runAllImportSteps()
tool.runAllImportStepsFromProfile('profile-%s' % base_profile)

for extension_profile in extension_profiles:
tool.setImportContext('profile-%s' % extension_profile)
tool.runAllImportSteps()

tool.setImportContext('profile-%s' % base_profile)
tool.runAllImportStepsFromProfile('profile-%s' % extension_profile)

if create_snapshot:
tool.createSnapshot('initial_configuration')
Expand Down

0 comments on commit 68ab2a1

Please sign in to comment.