def __init__(self, name, bucket=None, chunk_size=None): if bucket is None: bucket = _implicit_environ.get_default_bucket() if bucket is None: raise ValueError('A Blob must have a bucket set.') super(Blob, self).__init__(name=name) self.chunk_size = chunk_size # Check that setter accepts value. self.bucket = bucket self._acl = ObjectACL(self)
def acl(self): """Create our ACL on demand.""" if self._acl is None: self._acl = ObjectACL(self) return self._acl
def __init__(self, name, bucket, chunk_size=None): super(Blob, self).__init__(name=name) self.chunk_size = chunk_size # Check that setter accepts value. self.bucket = bucket self._acl = ObjectACL(self)