cubicweb-file #757862 Missing rql cache key makes size() method crash sometimes [resolved]

Please considerer adding the rql cache key 'eid' in the size method, so that the entity type is correctly resolved between Image and File

diff -r 87d0fe3edddd
--- a/      Wed Feb 10 16:11:56 2010 +0100
+++ b/      Wed Mar 17 22:08:17 2010 +0100
@@ -95,7 +95,7 @@

     def size(self):
         rql = "Any LENGTH(D) WHERE X eid %(eid)s, X data D"
-        return self.cursor.execute(rql, {'eid': self.eid})[0][0]
+        return self._cw.execute(rql, {'eid': self.eid}, 'eid')[0][0]

     @deprecated('use data_name instead')
done in1.8.1
load left0.000
closed by<not specified>