

def figshare_hgrid_data(node_settings, auth, parent=None, **kwargs):
    node = node_settings.owner
    if (node_settings.figshare_type == 'project'):
        item = Figshare.from_settings(node_settings.user_settings).project(node_settings, node_settings.figshare_id)
    else:
        item = Figshare.from_settings(node_settings.user_settings).article(node_settings, node_settings.figshare_id)
    if ((not node_settings.figshare_id) or (not node_settings.has_auth) or (not item)):
        return
    node_settings.figshare_title = (item.get('title') or item['items'][0]['title'])
    node_settings.save()
    return [rubeus.build_addon_root(node_settings, '{0}:{1}'.format((node_settings.figshare_title or 'Unnamed {0}'.format((node_settings.figshare_type or ''))), node_settings.figshare_id), permissions=auth, nodeUrl=node.url, nodeApiUrl=node.api_url, extra={
        'status': (node_settings.get('articles') or item['items'])[0]['status'].lower(),
    })]

dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/figshare/views/hgrid.py figshare_hgrid_data/VarMisuse@198/301 `item`->`node_settings`