# HG changeset patch # User Sylvain Thénault # Date 1303997361 -7200 # Node ID 5a1e9b90b5c4f4c7f1c9b1640337d172ec48b2b7 # Parent 373212d1fa33b96f6ba12c4221a1d699d33ecf97# Parent cd14e03124bedc64c42ab1cfd9e4a0ac9bc0967a merge stable diff -r 373212d1fa33 -r 5a1e9b90b5c4 cwconfig.py --- a/cwconfig.py Thu Apr 28 10:11:14 2011 +0200 +++ b/cwconfig.py Thu Apr 28 15:29:21 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 373212d1fa33 -r 5a1e9b90b5c4 utils.py --- a/utils.py Thu Apr 28 10:11:14 2011 +0200 +++ b/utils.py Thu Apr 28 15:29:21 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