Merge "Remove usage of user project caching" into stable/liberty

This commit is contained in:
Jenkins 2016-01-21 18:11:35 +00:00 committed by Gerrit Code Review
commit fa47798f38
2 changed files with 0 additions and 9 deletions

View File

@ -17,8 +17,6 @@ from django.utils.http import urlencode
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy
from openstack_auth import utils as auth_utils
from horizon import exceptions
from horizon import forms
from horizon import tables
@ -161,7 +159,6 @@ class DeleteTenantsAction(tables.DeleteAction):
def handle(self, table, request, obj_ids):
response = \
super(DeleteTenantsAction, self).handle(table, request, obj_ids)
auth_utils.remove_project_cache(request.user.token.unscoped_token)
return response

View File

@ -21,8 +21,6 @@ from django.conf import settings
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from openstack_auth import utils as auth_utils
from horizon import exceptions
from horizon import forms
from horizon import messages
@ -484,8 +482,6 @@ class CreateProject(CommonQuotaWorkflow):
'members%(group_msg)s and set project quotas.')
% {'users_to_add': users_to_add,
'group_msg': group_msg})
finally:
auth_utils.remove_project_cache(request.user.token.unscoped_token)
def _update_project_groups(self, request, data, project_id):
# update project groups
@ -748,8 +744,6 @@ class UpdateProject(CommonQuotaWorkflow):
% {'users_to_modify': users_to_modify,
'group_msg': group_msg})
return False
finally:
auth_utils.remove_project_cache(request.user.token.unscoped_token)
def _update_project_groups(self, request, data, project_id, domain_id):
# update project groups