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

def _group_or_org_revision_list ( context , data_dict ) : model = context [ 'model' ] id = _get_or_bust ( data_dict , 'id' ) group = model . Group . get ( id ) if ( group is None ) : raise NotFound revision_dicts = [ ] for ( revision , object_revisions ) in group . all_related_revisions : revision_dicts . append ( model . revision_as_dict ( revision , include_packages = False , include_groups = False ) ) return revision_dicts
return a groups revisions .