def querytool_delete(context, data_dict):
    '''Delete querytool.
    :param name: the name of query
    :type name: string
    :rtype: dictionary
    '''
    check_access('querytool_delete', context, data_dict)
    CkanextQueryTool.delete(id=data_dict['name'])
Exemple #2
0
def querytool_delete(context, data_dict):
    '''Delete querytool.
    :param id: the id of query
    :type id: string
    :rtype: dictionary
    '''
    check_access('querytool_delete', context)
    id = toolkit.get_or_bust(data_dict, 'id')
    CkanextQueryTool.delete(id=id)