def tab_item_index()

in scripts/workbook_create.py [0:0]


def tab_item_index(tab_object, item_name):
    for i in range(len(tab_object['content']['items'])):
        if tab_object['content']['items'][i]['name'] == item_name:
            if args.verbose:
                print('DEBUG: Found item {0} in workbook object {1} at index {2}'.format(item_name, tab_object['name'], i))
            return i
    if args.verbose:
        print('ERROR: I could not find item {0} in workbook object {1}'.format(item_name, tab_object['name']))
    return -1