Bases: keystone.common.kvs.legacy.Base, keystone.assignment.core.Driver
KVS Assignment backend.
This backend uses the following mappings to store data:
Deletes all assignments for a group.
Raises : | keystone.exception.RoleNotFound |
---|
Deletes all assignments for a user.
Raises : | keystone.exception.RoleNotFound |
---|
Bases: keystone.assignment.core.Driver
Called when the group was deleted.
Any role assignments for the group should be cleaned up.
Bases: object
Role Grant model.
Bases: keystone.common.ldap.core.EnabledEmuMixIn, keystone.common.ldap.core.BaseLdap
alias of ProjectNotFound
alias of Project
Bases: keystone.common.ldap.core.BaseLdap
alias of RoleNotFound
Returns a list of all the role assignments linked to project_tree_dn attribute.
alias of Role
Bases: keystone.assignment.core.Driver
Bases: sqlalchemy.ext.declarative.api.Base, keystone.common.sql.core.DictBase
Bases: sqlalchemy.ext.declarative.api.Base, keystone.common.sql.core.DictBase
Bases: sqlalchemy.ext.declarative.api.Base, keystone.common.sql.core.DictBase
Bases: sqlalchemy.ext.declarative.api.Base, keystone.common.sql.core.DictBase
Override parent to_dict() method with a simpler implementation.
RoleAssignment doesn’t have non-indexed ‘extra’ attributes, so the parent implementation is not applicable.
Return a constant False_ construct.
E.g.:
>>> from sqlalchemy import false
>>> print select([t.c.x]).where(false())
SELECT x FROM t WHERE false
A backend which does not support true/false constants will render as an expression against 1 or 0:
>>> print select([t.c.x]).where(false())
SELECT x FROM t WHERE 0 = 1
The true() and false() constants also feature “short circuit” operation within an and_() or or_() conjunction:
>>> print select([t.c.x]).where(or_(t.c.x > 5, true()))
SELECT x FROM t WHERE true
>>> print select([t.c.x]).where(and_(t.c.x > 5, false()))
SELECT x FROM t WHERE false
Changed in version 0.9: true() and false() feature better integrated behavior within conjunctions and on dialects that don’t support true/false constants.
See also
true()