def group_package_show(context, data_dict):
 model = context['model']
 group_id = _get_or_bust(data_dict, 'id')
 limit = data_dict.get('limit')
 if limit:
  try:
   limit = int(data_dict.get('limit'))
   if (limit < 0):
    raise logic.ValidationError('Limit must be a positive integer')
  except ValueError:
   raise logic.ValidationError('Limit must be a positive integer')
 group = model.Group.get(group_id)
 context['group'] = group
 if (group is None):
  raise NotFound
 _check_access('group_show', context, data_dict)
 result = logic.get_action('package_search')(context, {'fq': 'groups:{0}'.format(group.name), 'rows': limit})
 return result['results']

def group_package_show ( context , data_dict ) : model = context [ 'model' ] group_id = _get_or_bust ( data_dict , 'id' ) limit = data_dict . get ( 'limit' ) if limit : try : limit = int ( data_dict . get ( 'limit' ) ) if ( limit < 0 ) : raise logic . ValidationError ( 'Limit must be a positive integer' ) except ValueError : raise logic . ValidationError ( 'Limit must be a positive integer' ) group = model . Group . get ( group_id ) context [ 'group' ] = group if ( group is None ) : raise NotFound _check_access ( 'group_show' , context , data_dict ) result = logic . get_action ( 'package_search' ) ( context , { 'fq' : 'groups:{0}' . format ( group . name ) , 'rows' : limit } ) return result [ 'results' ]
return the datasets of a group .