Esempio n. 1
0
def base_url(self, instance):
    url = instance.absolute_url()
    if not image_cdn_enabled():
        return url
    site_url = getSite().absolute_url()
    base_url = site_url
    path = url[len(site_url) + 1:]
    provider = getProvider()
    return '%s/%s' % (provider.process_url(base_url, path), path)
Esempio n. 2
0
def base_url(self, instance):
    url = instance.absolute_url()
    if not image_cdn_enabled():
        return url
    site_url = getSite().absolute_url()
    base_url = site_url
    path = url[len(site_url)+1:]
    provider = getProvider()
    return '%s/%s' % (provider.process_url(base_url, path), path)
Esempio n. 3
0
 def cdn_provider(self):
     provider = getProvider()
     return provider
Esempio n. 4
0
 def cdn_provider(self):
     provider = getProvider()
     return provider