Skip to content

Commit

Permalink
Change tenant to project in python code to match templates.
Browse files Browse the repository at this point in the history
Fixes bug: 1009263

Change-Id: I8e57d3d294f3a9346c7ae2161b7a0381fbf536ea
  • Loading branch information
treshenry committed May 19, 2012
1 parent 8fd77f0 commit dd5cd7c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions horizon/dashboards/syspanel/projects/forms.py
Expand Up @@ -49,9 +49,9 @@ def handle(self, request, data):
data['tenant_id'],
data['user_id'],
data['role_id'])
messages.success(request, _('Successfully added user to tenant.'))
messages.success(request, _('Successfully added user to project.'))
except:
exceptions.handle(request, _('Unable to add user to tenant.'))
exceptions.handle(request, _('Unable to add user to project.'))
return shortcuts.redirect('horizon:syspanel:projects:users',
tenant_id=data['tenant_id'])

Expand All @@ -66,7 +66,7 @@ class CreateTenant(forms.SelfHandlingForm):

def handle(self, request, data):
try:
LOG.info('Creating tenant with name "%s"' % data['name'])
LOG.info('Creating project with name "%s"' % data['name'])
api.tenant_create(request,
data['name'],
data['description'],
Expand All @@ -75,7 +75,7 @@ def handle(self, request, data):
_('%s was successfully created.')
% data['name'])
except:
exceptions.handle(request, _('Unable to create tenant.'))
exceptions.handle(request, _('Unable to create project.'))
return shortcuts.redirect('horizon:syspanel:projects:index')


Expand All @@ -90,7 +90,7 @@ class UpdateTenant(forms.SelfHandlingForm):

def handle(self, request, data):
try:
LOG.info('Updating tenant with id "%s"' % data['id'])
LOG.info('Updating project with id "%s"' % data['id'])
api.tenant_update(request,
data['id'],
data['name'],
Expand All @@ -100,7 +100,7 @@ def handle(self, request, data):
_('%s was successfully updated.')
% data['name'])
except:
exceptions.handle(request, _('Unable to update tenant.'))
exceptions.handle(request, _('Unable to update project.'))
return shortcuts.redirect('horizon:syspanel:projects:index')


Expand Down

0 comments on commit dd5cd7c

Please sign in to comment.