(name)
return name[:10] + "..." + name[-7:]
order_name -- Limit a text to 20 chars length, if necessary strips the
    middle of the text and substitute it for an ellipsis.

    name -- text to be limited.
order_name -- Limit a text to 20 chars length, if necessary strips the
    middle of the text and substitute it for an ellipsis.
order_name -- Limit a text to 20 chars length if necessary strips the middle of the text and substitute it for an ellipsis .
def order_name(name):
    """order_name -- Limit a text to 20 chars length, if necessary strips the
    middle of the text and substitute it for an ellipsis.

    name -- text to be limited.

    """
    name = re.sub(r'^.*/', '', name)
    if len(name) <= 20:
        return name
    return name[:10] + "..." + name[-7:]
def order_name ( name ) : name = re . sub ( r'^.*/' , '' , name ) if len ( name ) <= 20 : return name return name [ : 10 ] + "..." + name [ - 7 : ]