Commit b460a671 authored by Nicolas Dumazet's avatar Nicolas Dumazet

be wiser if a property is missing. We can live with a wrong icon


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42021 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cae4e2ae
...@@ -598,7 +598,12 @@ class ERP5TypeInformation(XMLObject, ...@@ -598,7 +598,12 @@ class ERP5TypeInformation(XMLObject,
return self.objectValues(meta_type='ERP5 Action Information') return self.objectValues(meta_type='ERP5 Action Information')
def getIcon(self): def getIcon(self):
try:
return self.getTypeIcon() return self.getTypeIcon()
except AttributeError:
# do not fail if the property is missing: getTypeIcon is used in the ZMI
# and we always want to display the ZMI no matter what
return ''
def getTypeInfo(self, *args): def getTypeInfo(self, *args):
if args: if args:
......
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