Commit 62ea0a7c authored by Amos Latteier's avatar Amos Latteier

Deal with the case where Products don't have Help objects.

parent b38f6050
......@@ -33,8 +33,9 @@ class HelpSystem(Acquisition.Implicit, ObjectManager, Item, Persistent):
def helpValues(self, spec=None):
"Help topics"
hv=[]
for Product in self.Control_Panel.Products.objectValues():
hv.append(Product.Help)
for product in self.Control_Panel.Products.objectValues():
if hasattr(product, 'Help'):
hv.append(product.Help)
return hv
# Seaching does an aggregated search of all ProductHelp
......
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