This Module implements rights and lists of rights for the Geni wrapper. Rights are implemented by two classes: Right - represents a single right RightList - represents a list of rights A right may allow several different operations. For example, the "info" right allows "listslices", "listcomponentresources", etc.
privilege_table is a list of priviliges and what operations are allowed per privilege.
The Right class represents a single privilege.
For more information about this class, see The Right Class.
A RightList object represents a list of privileges.
For more information about this class, see The RightList Class.
The Right class represents a single privilege.
Test to see if this right object is allowed to perform an operation. Returns True if the operation is allowed, False otherwise.
Test to see if this right is a superset of a child right. A right is a superset if every operating that is allowed by the child is also allowed by this object.
A RightList object represents a list of privileges.
Add a right to this list
Check to see if some right in this list allows an operation. This is done by evaluating the can_perform function of each operation in the list.
Check to see if all of the rights in this rightlist are a superset of all the rights in a child rightlist. A rightlist is a superset if there is no operation in the child rightlist that cannot be performed in the parent rightlist.
Load the rightlist object from a string
Save the rightlist object to a string. It is saved in the format of a comma-separated list.