def name_from_canonical_parts(prefix, controller, action, args=None):
    """
    Returns the route's name ('admin-users-edit') from the canonical
    parts ('admin','users','edit')
    """
    route_parts = [prefix, controller, action]
    route_parts = [x for x in route_parts if x]
    route_name = ':'.join(route_parts)

    return route_name