~hudson-openstack/nova/trunk

« back to all changes in this revision

Viewing changes to nova/api/ec2/admin.py

  • Committer: Tarmac
  • Author(s): Devin Carlen
  • Date: 2011-01-31 21:29:22 UTC
  • mfrom: (638.3.1 lp709632)
  • Revision ID: tarmac-20110131212922-lkp30vn2rkfhlxf1
Enabled modification of projects using the EC2 admin API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
                description=None,
185
185
                member_users=None))
186
186
 
 
187
    def modify_project(self, context, name, manager_user, description=None,
 
188
                       **kwargs):
 
189
        """Modifies a project"""
 
190
        msg = _("Modify project: %(name)s managed by"
 
191
                " %(manager_user)s") % locals()
 
192
        LOG.audit(msg, context=context)
 
193
        manager.AuthManager().modify_project(name,
 
194
                                             manager_user=manager_user,
 
195
                                             description=description)
 
196
        return True
 
197
 
187
198
    def deregister_project(self, context, name):
188
199
        """Permanently deletes a project."""
189
200
        LOG.audit(_("Delete project: %s"), name, context=context)