Ejemplo n.º 1
0
 def asset(path):
     fspath = website.www_root + '/assets/' + path
     etag = ''
     try:
         etag = asset_etag(fspath)
     except Exception as e:
         website.tell_sentry(e, {})
     return env.gratipay_asset_url + path + (etag and '?etag=' + etag)
Ejemplo n.º 2
0
 def asset(path):
     fspath = website.www_root+'/assets/'+path
     etag = ''
     try:
         etag = asset_etag(fspath)
     except Exception as e:
         website.tell_sentry(e, {})
     return env.gratipay_asset_url+path+(etag and '?etag='+etag)