(index, cat)
:param index: (String)  The primary name of the Index to move.
    :param cat:  (model.Category or List) Category to move into - either a Category object, or a List with the path leading to the Category
    :return: None
:param index: (String)  The primary name of the Index to move.
    :param cat:  (model.Category or List) Category to move into - either a Category object, or a List with the path leading to the Category
    :return: None
: param index : ( String ) The primary name of the Index to move . : param cat : ( model . Category or List ) Category to move into - either a Category object or a List with the path leading to the Category : return : None
def move_index_into(index, cat):
    """
    :param index: (String)  The primary name of the Index to move.
    :param cat:  (model.Category or List) Category to move into - either a Category object, or a List with the path leading to the Category
    :return: None
    """
    if not isinstance(index, Index):
        try:
            index = library.get_index(index)
        except BookNameError:
            print("Can not find: {}".format(index))
            return
    if not isinstance(cat, Category):
        cat = Category().load({"path": cat})

    index.categories = cat.path[:]
    print("Moving - " + index.get_title() + " to " + str(index.categories) + " (move_index_into)")
    index.save(override_dependencies=True)
def move_index_into ( index , cat ) : if not isinstance ( index , Index ) : try : index = library . get_index ( index ) except BookNameError : print ( "Can not find: {}" . format ( index ) ) return if not isinstance ( cat , Category ) : cat = Category ( ) . load ( { "path" : cat } ) index . categories = cat . path [ : ] print ( "Moving - " + index . get_title ( ) + " to " + str ( index . categories ) + " (move_index_into)" ) index . save ( override_dependencies = True )