@logic.validate(logic.schema.default_activity_list_schema)
def package_activity_list(context, data_dict):
 _check_access('package_show', context, data_dict)
 model = context['model']
 package_ref = data_dict.get('id')
 package = model.Package.get(package_ref)
 if (package is None):
  raise logic.NotFound
 offset = int(data_dict.get('offset', 0))
 limit = int(data_dict.get('limit', config.get('ckan.activity_list_limit', 31)))
 _activity_objects = model.activity.package_activity_list(package.id, limit=limit, offset=offset)
 activity_objects = _filter_activity_by_user(_activity_objects, _activity_stream_get_filtered_users())
 return model_dictize.activity_list_dictize(activity_objects, context)

@ logic . validate ( logic . schema . default_activity_list_schema ) def package_activity_list ( context , data_dict ) : _check_access ( 'package_show' , context , data_dict ) model = context [ 'model' ] package_ref = data_dict . get ( 'id' ) package = model . Package . get ( package_ref ) if ( package is None ) : raise logic . NotFound offset = int ( data_dict . get ( 'offset' , 0 ) ) limit = int ( data_dict . get ( 'limit' , config . get ( 'ckan.activity_list_limit' , 31 ) ) ) _activity_objects = model . activity . package_activity_list ( package . id , limit = limit , offset = offset ) activity_objects = _filter_activity_by_user ( _activity_objects , _activity_stream_get_filtered_users ( ) ) return model_dictize . activity_list_dictize ( activity_objects , context )
return the given dataset s public activity stream .