cubicweb-file #736186 file size method crash [resolved]

Please find here a patch fixing a crash in file size method

diff -r 87d0fe3edddd entities.py
--- a/entities.py       Wed Feb 10 16:11:56 2010 +0100
+++ b/entities.py       Sun Mar 07 23:29:08 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})[0][0]

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