[Beaker-devel] New sub-command to list access policy for a system

Amit Saha asaha at redhat.com
Thu Sep 26 04:22:16 UTC 2013



----- Original Message -----
> From: "Amit Saha" <asaha at redhat.com>
> To: "Beaker development" <beaker-devel at lists.fedorahosted.org>
> Sent: Wednesday, September 25, 2013 5:31:57 PM
> Subject: Re: [Beaker-devel] New sub-command to list access policy	for	a	system
> 
> 
> 
> ----- Original Message -----
> > From: "Nick Coghlan" <ncoghlan at redhat.com>
> > To: beaker-devel at lists.fedorahosted.org
> > Sent: Wednesday, September 25, 2013 5:09:03 PM
> > Subject: Re: [Beaker-devel] New sub-command to list access policy for	a
> > 	system
> > 
> > On 09/25/2013 04:25 PM, Amit Saha wrote:
> > > ----- Original Message -----
> > >> From: "Dan Callaghan" <dcallagh at redhat.com>
> > >> PrettyTable sounds nifty, I'd never heard of it before.
> > 
> > Indeed, would have been handy back when I was working on the client for
> > PulpDist.
> 
> That is where, a lot of the time this morning went into,  but it does indeed
> look like a good find. And we don't need to resort to .format()'s
> mini-language
> to get it right.
> 
> > 
> > >> I'm not sure a table is a good way to represent the rules though. A rule
> > >> applies either to a particular user, a particular group, or everybody.
> > >> The table view doesn't really make that easy to see (especially for the
> > >> "everybody" case) which is why I had suggested just the plain listing of
> > >> rules.
> > > 
> > > I am going to push this a little further :-).
> > > 
> > > I made some changes and now the output is:
> > > 
> > > +------+----------------+--------+---------+-----------+
> > > | Rule |   Permission   |  User  |  Group  | Everybody |
> > > +------+----------------+--------+---------+-----------+
> > > |  1   |  edit_system   | user10 |    X    |     X     |
> > > |  2   | control_system | user11 |    X    |     X     |
> > > |  3   | control_system |   X    | group12 |     X     |
> > > +------+----------------+--------+---------+-----------+
> > > 
> > > How do you find it?
> > 
> > So, ordered by permission and displaying "yes" in the Everybody column
> > when neither user nor group is specified?

One point to note here is that ordering by permission will most likely
cause the Rule numbers to go haywire. Do we really want that? On the other hand,
I understand that sorting by Permissions will "group" them as well.

Shall I drop the rule number column?





More information about the Beaker-devel mailing list