[FIX] Remove url timestamps in debug mode

The chrome cache bug seems to be gone with newer versions.
Moreover, the cutting edge features of the webkit developper tools
won't work if url changes upon reload.

bzr revid: fme@openerp.com-20130227114134-nlv7g5jjvvd037p2
This commit is contained in:
Fabien Meghazi 2013-02-27 12:41:34 +01:00
parent 5a9bf08f46
commit d6975ff37f
1 changed files with 1 additions and 6 deletions

View File

@ -300,12 +300,7 @@ def manifest_list(req, extension, mods=None, db=None):
path += '?' + urllib.urlencode({'db': db})
return [path]
files = manifest_glob(req, extension, addons=mods, db=db)
i_am_diabetic = req.httprequest.environ["QUERY_STRING"].count("no_sugar") >= 1 or \
req.httprequest.environ.get('HTTP_REFERER', '').count("no_sugar") >= 1
if i_am_diabetic:
return [wp for _fp, wp in files]
else:
return ['%s?debug=%s' % (wp, os.path.getmtime(fp)) for fp, wp in files]
return [wp for _fp, wp in files]
def get_last_modified(files):
""" Returns the modification time of the most recently modified