Commit a7445c7c authored by Vincent Pelletier's avatar Vincent Pelletier

Simplify code.

parent f4c94450
...@@ -17,10 +17,7 @@ from App.ImageFile import ImageFile ...@@ -17,10 +17,7 @@ from App.ImageFile import ImageFile
def haveProxyRole(self): def haveProxyRole(self):
"""if a script has proxy role, return True""" """if a script has proxy role, return True"""
if self._proxy_roles: return bool(self._proxy_roles)
return True
return False
def om_icons(self): def om_icons(self):
"""Return a list of icon URLs to be displayed by an ObjectManager""" """Return a list of icon URLs to be displayed by an ObjectManager"""
......
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