コード例 #1
0
ファイル: wireup.py プロジェクト: augmen/gratipay.com
 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)
コード例 #2
0
ファイル: wireup.py プロジェクト: cyberjacob/www.gittip.com
 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)