@logic.validate(logic.schema.default_package_list_schema)
def current_package_list_with_resources(context, data_dict):
 model = context['model']
 limit = data_dict.get('limit')
 offset = data_dict.get('offset', 0)
 user = context['user']
 if ((not ('offset' in data_dict)) and ('page' in data_dict)):
  log.warning('"page" parameter is deprecated.  Use the "offset" parameter instead')
  page = data_dict['page']
  if limit:
   offset = ((page - 1) * limit)
  else:
   offset = 0
 _check_access('current_package_list_with_resources', context, data_dict)
 search = package_search(context, {'q': '', 'rows': limit, 'start': offset, 'include_private': authz.is_sysadmin(user)})
 return search.get('results', [])

@ logic . validate ( logic . schema . default_package_list_schema ) def current_package_list_with_resources ( context , data_dict ) : model = context [ 'model' ] limit = data_dict . get ( 'limit' ) offset = data_dict . get ( 'offset' , 0 ) user = context [ 'user' ] if ( ( not ( 'offset' in data_dict ) ) and ( 'page' in data_dict ) ) : log . warning ( '"page" parameter is deprecated.  Use the "offset" parameter instead' ) page = data_dict [ 'page' ] if limit : offset = ( ( page - 1 ) * limit ) else : offset = 0 _check_access ( 'current_package_list_with_resources' , context , data_dict ) search = package_search ( context , { 'q' : '' , 'rows' : limit , 'start' : offset , 'include_private' : authz . is_sysadmin ( user ) } ) return search . get ( 'results' , [ ] )
return a list of the sites datasets and their resources .