Exemple #1
0
def getBucket(user, bucket, prefix, marker, maxKeys, delimiter):
	if not BucketACP.checkUserPermission(user, bucket, 'read'):
		raise ForbiddenException.AccessDeniedException()
	BucketLogging.logBucketEvent(user, bucket, 'get')
	return Bucket.getBucket(bucket=bucket, prefix=prefix, marker=marker, maxKeys=maxKeys, delimiter=delimiter)
Exemple #2
0
def getBucket(userId, bucket, prefix, marker, maxKeys, delimiter):
	if not checkUserPermission(user, bucket, 'read'):
		'''not allowed, throw error'''
	return Bucket.getBucket(bucket, prefix, marker, maxKeys, delimiter)