def get_ui_data(slice):
    """
    Hook method. Use this very same name so Expedient can get the resources for every plugin.
    """
    ui_context = dict()
    try:
        ui_context['sr_list'] = get_sr_list(slice)
        ui_context['sr_aggs'] = get_sr_aggregates(slice)
        ui_context['nodes'], ui_context['links'] = get_nodes_links(slice)
    except Exception as e:
        print "[ERROR] Problem loading UI data for plugin 'sample_resource'. Details: %s" % str(e)
    return ui_context
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/doc/plugins/samples/plugin/sample_resource/controller/GUIdispatcher.py/get_ui_data/original