Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
def network_icon(network):
    return icon_filter(presentation.get_network_icon(network))
Exemplo n.º 5
0
def network_icon(network):
    return icon_filter(presentation.get_network_icon(network))