~nova-coresec/nova/ppa-lucid

« back to all changes in this revision

Viewing changes to nova/objectstore/bucket.py

  • Committer: Soren Hansen
  • Date: 2010-10-20 02:31:51 UTC
  • mfrom: (195.1.88 ubuntu-packaging)
  • Revision ID: soren.hansen@rackspace.com-20101020023151-pzo6st38dd8xdo81
Merge ubuntu packaging branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        os.makedirs(path)
84
84
 
85
85
        with open(path+'.json', 'w') as f:
86
 
            json.dump({'ownerId': context.project.id}, f)
 
86
            json.dump({'ownerId': context.project_id}, f)
87
87
 
88
88
    @property
89
89
    def metadata(self):
106
106
 
107
107
    def is_authorized(self, context):
108
108
        try:
109
 
            return context.user.is_admin() or self.owner_id == context.project.id
 
109
            return context.user.is_admin() or self.owner_id == context.project_id
110
110
        except Exception, e:
111
111
            return False
112
112