# HG changeset patch # User Sylvain Thénault # Date 1303997416 -7200 # Node ID 2bd70418b601de3853579e94f662b332c3be2b20 # Parent 33475a31c96c4e25ec5ae9f8051b976b9078fc88# Parent 5a1e9b90b5c4f4c7f1c9b1640337d172ec48b2b7 backport stable diff -r 33475a31c96c -r 2bd70418b601 cwconfig.py --- a/cwconfig.py Thu Apr 28 10:11:36 2011 +0200 +++ b/cwconfig.py Thu Apr 28 15:30:16 2011 +0200 @@ -1070,9 +1070,10 @@ def instance_md5_version(self): import hashlib infos = [] - for pkg in self.cubes(): + for pkg in sorted(self.cubes()): version = self.cube_version(pkg) infos.append('%s-%s' % (pkg, version)) + infos.append('cubicweb-%s' % str(self.cubicweb_version())) return hashlib.md5(';'.join(infos)).hexdigest() def load_configuration(self): diff -r 33475a31c96c -r 2bd70418b601 utils.py --- a/utils.py Thu Apr 28 10:11:36 2011 +0200 +++ b/utils.py Thu Apr 28 15:30:16 2011 +0200 @@ -230,7 +230,10 @@ Request objects use a HTMLHead instance to ease adding of javascripts and stylesheets """ - js_unload_code = u'jQuery(window).unload(unloadPageData);' + js_unload_code = u'''if (typeof(pageDataUnloaded) == 'undefined') { + jQuery(window).unload(unloadPageData); + pageDataUnloaded = true; +}''' # Making