[entity edition] stop comparing values as it may trigger exceptions (e.g. timeseries cube tests)
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 02 Aug 2012 19:00:22 +0200
changeset 8513 552de9f0c46d
parent 8510 e2913c9880a0
child 8525 c09feae04094
[entity edition] stop comparing values as it may trigger exceptions (e.g. timeseries cube tests) Rely on a changes in yams instead where we have guarantee to have only comparable objects. This follows changesets 1527b012802f, 25da1e5c7c50 and 4ba11607d84a, and should definitly closes #2423719
__pkginfo__.py
debian/control
server/edition.py
--- a/__pkginfo__.py	Thu Aug 02 10:09:11 2012 +0200
+++ b/__pkginfo__.py	Thu Aug 02 19:00:22 2012 +0200
@@ -43,7 +43,7 @@
     'logilab-common': '>= 0.58.0',
     'logilab-mtconverter': '>= 0.8.0',
     'rql': '>= 0.31.2',
-    'yams': '>= 0.34.0',
+    'yams': '>= 0.36.0',
     #gettext                    # for xgettext, msgcat, etc...
     # web dependancies
     'simplejson': '>= 2.0.9',
--- a/debian/control	Thu Aug 02 10:09:11 2012 +0200
+++ b/debian/control	Thu Aug 02 19:00:22 2012 +0200
@@ -100,7 +100,7 @@
 Package: cubicweb-common
 Architecture: all
 XB-Python-Version: ${python:Versions}
-Depends: ${misc:Depends}, ${python:Depends}, graphviz, gettext, python-logilab-mtconverter (>= 0.8.0), python-logilab-common (>= 0.58.0), python-yams (>= 0.34.0), python-rql (>= 0.31.2), python-lxml
+Depends: ${misc:Depends}, ${python:Depends}, graphviz, gettext, python-logilab-mtconverter (>= 0.8.0), python-logilab-common (>= 0.58.0), python-yams (>= 0.36.0), python-rql (>= 0.31.2), python-lxml
 Recommends: python-simpletal (>= 4.0), python-crypto
 Conflicts: cubicweb-core
 Replaces: cubicweb-core
--- a/server/edition.py	Thu Aug 02 10:09:11 2012 +0200
+++ b/server/edition.py	Thu Aug 02 19:00:22 2012 +0200
@@ -61,10 +61,8 @@
         # attributes, else we may accidentaly skip a desired security check
         if attr not in self:
             self.skip_security.add(attr)
-        elif value != self[attr]:
-            # also, if value differs, mark attribute as needing purge by the
-            # client
-            self.entity._cw_dont_cache_attribute(attr)
+        # mark attribute as needing purge by the client
+        self.entity._cw_dont_cache_attribute(attr)
         self.edited_attribute(attr, value)
 
     def __delitem__(self, attr):