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