def dataset_followee_list(context, data_dict):
 _check_access('dataset_followee_list', context, data_dict)
 if (not context.get('skip_validation')):
  schema = (context.get('schema') or ckan.logic.schema.default_follow_user_schema())
  (data_dict, errors) = _validate(data_dict, schema, context)
  if errors:
   raise ValidationError(errors)
 model = context['model']
 user_id = _get_or_bust(data_dict, 'id')
 followees = model.UserFollowingDataset.followee_list(user_id)
 datasets = [model.Package.get(followee.object_id) for followee in followees]
 datasets = [dataset for dataset in datasets if (dataset is not None)]
 return [model_dictize.package_dictize(dataset, context) for dataset in datasets]

def dataset_followee_list ( context , data_dict ) : _check_access ( 'dataset_followee_list' , context , data_dict ) if ( not context . get ( 'skip_validation' ) ) : schema = ( context . get ( 'schema' ) or ckan . logic . schema . default_follow_user_schema ( ) ) ( data_dict , errors ) = _validate ( data_dict , schema , context ) if errors : raise ValidationError ( errors ) model = context [ 'model' ] user_id = _get_or_bust ( data_dict , 'id' ) followees = model . UserFollowingDataset . followee_list ( user_id ) datasets = [ model . Package . get ( followee . object_id ) for followee in followees ] datasets = [ dataset for dataset in datasets if ( dataset is not None ) ] return [ model_dictize . package_dictize ( dataset , context ) for dataset in datasets ]
return the list of datasets that are followed by the given user .