entities/authobjs.py
changeset 10141 62e1f9749d3a
parent 9059 795ea498225f
child 10612 84468b90e9c1
--- a/entities/authobjs.py	Tue Mar 04 12:41:21 2014 +0100
+++ b/entities/authobjs.py	Sat Jan 03 04:06:06 2015 +0100
@@ -74,7 +74,11 @@
         try:
             return self._properties
         except AttributeError:
-            self._properties = dict((p.pkey, p.value) for p in self.reverse_for_user)
+            self._properties = dict(
+                self._cw.execute(
+                    'Any K, V WHERE P for_user U, U eid %(userid)s, '
+                    'P pkey K, P value V',
+                    {'userid': self.eid}))
             return self._properties
 
     def prefered_language(self, language=None):