def package_revision_list(context, data_dict):
 model = context['model']
 id = _get_or_bust(data_dict, 'id')
 pkg = model.Package.get(id)
 if (pkg is None):
  raise NotFound
 _check_access('package_revision_list', context, data_dict)
 revision_dicts = []
 for (revision, object_revisions) in pkg.all_related_revisions:
  revision_dicts.append(model.revision_as_dict(revision, include_packages=False, include_groups=False))
 return revision_dicts

def package_revision_list ( context , data_dict ) : model = context [ 'model' ] id = _get_or_bust ( data_dict , 'id' ) pkg = model . Package . get ( id ) if ( pkg is None ) : raise NotFound _check_access ( 'package_revision_list' , context , data_dict ) revision_dicts = [ ] for ( revision , object_revisions ) in pkg . all_related_revisions : revision_dicts . append ( model . revision_as_dict ( revision , include_packages = False , include_groups = False ) ) return revision_dicts
return a dataset s revisions as a list of dictionaries .