[web config] fix md5 version to ensure cubes order and to include cubicweb version stable
authorFlorent Cayré
Wed, 27 Apr 2011 15:42:07 +0200
branchstable
changeset 7264 9ed9e1d77ef3
parent 7255 cbd7b2f49dc9
child 7268 cd14e03124be
[web config] fix md5 version to ensure cubes order and to include cubicweb version
cwconfig.py
--- 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):