Commit 1128425a authored by Hanno Schlichting's avatar Hanno Schlichting

More fail-safe Products.meta_types check

parent 5afaef9e
......@@ -221,7 +221,7 @@ class ObjectManager(CopyContainer,
external_candidates.extend(list(_pmt))
# Look at all globally visible meta types.
for entry in Products.meta_types:
for entry in getattr(Products, 'meta_types', ()):
if ( (interfaces is not None) or (entry.get("visibility", None)=="Global") ):
external_candidates.append(entry)
......
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