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

def package_create_default_resource_views ( context , data_dict ) : dataset_dict = _get_or_bust ( data_dict , 'package' ) _check_access ( 'package_create_default_resource_views' , context , data_dict ) create_datastore_views = paste . deploy . converters . asbool ( data_dict . get ( 'create_datastore_views' , False ) ) return ckan . lib . datapreview . add_views_to_dataset_resources ( context , dataset_dict , view_types = [ ] , create_datastore_views = create_datastore_views )
creates the default views on all resources of the provided dataset by default only view plugins that dont require the resource data to be in the datastore are called .