def convert_linkable_to_choice(linkable):
    key = get_composite_key(linkable)

    try:
        value = u'%s (%s)' % (force_text(linkable), linkable.get_absolute_url())
    except __HOLE__:
        value = force_text(linkable)

    return (key, value)
dataset/ETHPy150Open fusionbox/django-widgy/widgy/models/links.py/convert_linkable_to_choice