def get_icon_for(ci): if not ci or not ci.content_object: return if ci.content_type.name == "venture": return get_venture_icon(ci.content_object) elif ci.content_type.name == "device": return get_device_icon(ci.content_object) elif ci.content_type.name == "network": return get_network_icon(ci.content_object)
def get_icon_for(ci): if not ci or not ci.content_object: return if ci.content_type.name == 'venture': return get_venture_icon(ci.content_object) elif ci.content_type.name == 'device': return get_device_icon(ci.content_object) elif ci.content_type.name == 'network': return get_network_icon(ci.content_object)
def network_icon(network): return icon_filter(presentation.get_network_icon(network))