Skip to content

Commit

Permalink
fix cache-invalidation in ProductDispatcher. Fixes all tests that use…
Browse files Browse the repository at this point in the history
… late-initialized products in test-profiles
  • Loading branch information
pbauer committed Feb 2, 2016
1 parent cff7b4d commit ef457af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ http://docs.zope.org/zope2/
Bugs Fixed
++++++++++

- bobo_traverse of ProductDispatcher did not correctly invalidate cache
when a product was not initializes after first access of the cache. Types
that were added in test-profiles were not useable.
[pbauer, jensens]

- Fix pt_editForm after the help-system was removed.
[pbauer]

Expand Down
4 changes: 2 additions & 2 deletions src/App/FactoryDispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def __bobo_traverse__(self, REQUEST, name):
# Try to get a custom dispatcher from a Python product
global _packages
try:
package = _packages.get(name, None)
except NameError:
package = _packages[name]
except (NameError, KeyError):
_packages = _product_packages()
package = _packages.get(name, None)

Expand Down

0 comments on commit ef457af

Please sign in to comment.