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/ ...@@ -11,6 +11,11 @@ http://docs.zope.org/zope2/
Bugs Fixed 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. - Fix pt_editForm after the help-system was removed.
[pbauer] [pbauer]
......
...@@ -79,8 +79,8 @@ class ProductDispatcher(Implicit): ...@@ -79,8 +79,8 @@ class ProductDispatcher(Implicit):
# Try to get a custom dispatcher from a Python product # Try to get a custom dispatcher from a Python product
global _packages global _packages
try: try:
package = _packages.get(name, None) package = _packages[name]
except NameError: except (NameError, KeyError):
_packages = _product_packages() _packages = _product_packages()
package = _packages.get(name, None) 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