[web config] fix md5 version to ensure cubes order and to include cubicweb version
--- a/cwconfig.py Wed Apr 27 09:55:17 2011 +0200
+++ b/cwconfig.py Wed Apr 27 15:42:07 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):