def parse_bucket_name_from_url(self, request, url):
    if self.subdomain_based_buckets(request):
        return bucket_name_from_url(url)
    else:
        return bucketpath_bucket_name_from_url(url)
def parse_bucket_name_from_url(self, request, url):
    if self.subdomain_based_buckets(request):
        return bucket_name_from_url(url)
    else:
        return bucketpath_bucket_name_from_url(url)