cubicweb/hooks/syncsession.py
changeset 11765 9cb215e833b0
parent 11700 41ddaf6802f0
child 11767 432f87a63057
--- a/cubicweb/hooks/syncsession.py	Thu Oct 06 12:15:50 2016 +0200
+++ b/cubicweb/hooks/syncsession.py	Sat Oct 01 11:56:27 2016 +0200
@@ -257,7 +257,7 @@
     def __call__(self):
         cnx = self._cw
         eidfrom = self.eidfrom
-        if not cnx.entity_metas(eidfrom)['type'] == 'CWProperty':
+        if not cnx.entity_type(eidfrom) == 'CWProperty':
             return
         key, value = cnx.execute('Any K,V WHERE P eid %(x)s,P pkey K,P value V',
                                  {'x': eidfrom})[0]