Commit ba8705e7 authored by Jim Fulton's avatar Jim Fulton

Fixed sloppy error handling in __getattr__ that causes the now much

less sloppy and unforgivving acquisition to fail when looking up
attributes of factory dispatchers.
parent 282e2b19
......@@ -139,7 +139,7 @@ class FactoryDispatcher(Acquisition.Implicit):
# Waaa
m='Products.%s' % p.id
if sys.modules.has_key(m):
if sys.modules.has_key(m) and sys.modules[m]._m.has_key(name):
return sys.modules[m]._m[name]
raise AttributeError, name
......
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