cwconfig.py
branchstable
changeset 7270 5a1e9b90b5c4
parent 7264 9ed9e1d77ef3
child 7691 c47dcd37d4e3
equal deleted inserted replaced
7262:373212d1fa33 7270:5a1e9b90b5c4
  1068 
  1068 
  1069     @cached
  1069     @cached
  1070     def instance_md5_version(self):
  1070     def instance_md5_version(self):
  1071         import hashlib
  1071         import hashlib
  1072         infos = []
  1072         infos = []
  1073         for pkg in self.cubes():
  1073         for pkg in sorted(self.cubes()):
  1074             version = self.cube_version(pkg)
  1074             version = self.cube_version(pkg)
  1075             infos.append('%s-%s' % (pkg, version))
  1075             infos.append('%s-%s' % (pkg, version))
       
  1076         infos.append('cubicweb-%s' % str(self.cubicweb_version()))
  1076         return hashlib.md5(';'.join(infos)).hexdigest()
  1077         return hashlib.md5(';'.join(infos)).hexdigest()
  1077 
  1078 
  1078     def load_configuration(self):
  1079     def load_configuration(self):
  1079         """load instance's configuration files"""
  1080         """load instance's configuration files"""
  1080         super(CubicWebConfiguration, self).load_configuration()
  1081         super(CubicWebConfiguration, self).load_configuration()