"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/assignment/backends/sql.py" between
keystone-18.0.0.tar.gz and keystone-19.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Wallaby" series (latest release).

sql.py  (keystone-18.0.0):sql.py  (keystone-19.0.0)
skipping to change at line 270 skipping to change at line 270
AssignmentType.GROUP_PROJECT)) AssignmentType.GROUP_PROJECT))
) )
q.delete(False) q.delete(False)
def delete_role_assignments(self, role_id): def delete_role_assignments(self, role_id):
with sql.session_for_write() as session: with sql.session_for_write() as session:
q = session.query(RoleAssignment) q = session.query(RoleAssignment)
q = q.filter_by(role_id=role_id) q = q.filter_by(role_id=role_id)
q.delete(False) q.delete(False)
with sql.session_for_write() as session:
q = session.query(SystemRoleAssignment)
q = q.filter_by(role_id=role_id)
q.delete(False)
def delete_domain_assignments(self, domain_id): def delete_domain_assignments(self, domain_id):
with sql.session_for_write() as session: with sql.session_for_write() as session:
q = session.query(RoleAssignment) q = session.query(RoleAssignment)
q = q.filter(RoleAssignment.target_id == domain_id).filter( q = q.filter(RoleAssignment.target_id == domain_id).filter(
(RoleAssignment.type == AssignmentType.USER_DOMAIN) | (RoleAssignment.type == AssignmentType.USER_DOMAIN) |
(RoleAssignment.type == AssignmentType.GROUP_DOMAIN)) (RoleAssignment.type == AssignmentType.GROUP_DOMAIN))
q.delete(False) q.delete(False)
def delete_user_assignments(self, user_id): def delete_user_assignments(self, user_id):
with sql.session_for_write() as session: with sql.session_for_write() as session:
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)