def datastore_make_private(context, data_dict):
 if ('id' in data_dict):
  data_dict['resource_id'] = data_dict['id']
 res_id = _get_or_bust(data_dict, 'resource_id')
 data_dict['connection_url'] = config['ckan.datastore.write_url']
 if (not _resource_exists(context, data_dict)):
  raise p.toolkit.ObjectNotFound(p.toolkit._(u'Resource "{0}" was not found.'.format(res_id)))
 p.toolkit.check_access('datastore_change_permissions', context, data_dict)
 db.make_private(context, data_dict)

def datastore_make_private ( context , data_dict ) : if ( 'id' in data_dict ) : data_dict [ 'resource_id' ] = data_dict [ 'id' ] res_id = _get_or_bust ( data_dict , 'resource_id' ) data_dict [ 'connection_url' ] = config [ 'ckan.datastore.write_url' ] if ( not _resource_exists ( context , data_dict ) ) : raise p . toolkit . ObjectNotFound ( p . toolkit . _ ( u'Resource "{0}" was not found.' . format ( res_id ) ) ) p . toolkit . check_access ( 'datastore_change_permissions' , context , data_dict ) db . make_private ( context , data_dict )
deny access to the datastore table through :meth:~ckanext .