def parse_key_name(self, request, url):
    if self.subdomain_based_buckets(request):
        return parse_key_name(url)
    else:
        return bucketpath_parse_key_name(url)
def parse_key_name(self, request, url):
    if self.subdomain_based_buckets(request):
        return parse_key_name(url)
    else:
        return bucketpath_parse_key_name(url)