Commit ef457af8 authored by Philip Bauer's avatar Philip Bauer

fix cache-invalidation in ProductDispatcher. Fixes all tests that use...

fix cache-invalidation in ProductDispatcher. Fixes all tests that use late-initialized products in test-profiles
parent cff7b4d2
......@@ -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]
......
......@@ -79,8 +79,8 @@ class ProductDispatcher(Implicit):
# 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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment