def resource_create_default_resource_views(context, data_dict):
 resource_dict = _get_or_bust(data_dict, 'resource')
 _check_access('resource_create_default_resource_views', context, data_dict)
 dataset_dict = data_dict.get('package')
 create_datastore_views = paste.deploy.converters.asbool(data_dict.get('create_datastore_views', False))
 return ckan.lib.datapreview.add_views_to_resource(context, resource_dict, dataset_dict, view_types=[], create_datastore_views=create_datastore_views)

def resource_create_default_resource_views ( context , data_dict ) : resource_dict = _get_or_bust ( data_dict , 'resource' ) _check_access ( 'resource_create_default_resource_views' , context , data_dict ) dataset_dict = data_dict . get ( 'package' ) create_datastore_views = paste . deploy . converters . asbool ( data_dict . get ( 'create_datastore_views' , False ) ) return ckan . lib . datapreview . add_views_to_resource ( context , resource_dict , dataset_dict , view_types = [ ] , create_datastore_views = create_datastore_views )
creates the default views on the provided resource the function will get the plugins for the default views defined in the configuration .