[py3k] left-over unicode() in authobjs.py
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 22 Jun 2016 16:23:11 +0200
changeset 11352 7844973fe3e0
parent 11351 97882e99138d
child 11353 98edb500806f
[py3k] left-over unicode() in authobjs.py
cubicweb/entities/authobjs.py
--- a/cubicweb/entities/authobjs.py	Tue May 10 16:09:34 2016 +0200
+++ b/cubicweb/entities/authobjs.py	Wed Jun 22 16:23:11 2016 +0200
@@ -115,7 +115,7 @@
                 'CWProperty X WHERE X pkey %(k)s, X for_user U, U eid %(u)s',
                 {'k': pkey, 'u': self.eid}).get_entity(0, 0)
         except Exception:
-            kwargs = dict(pkey=unicode(pkey), value=value)
+            kwargs = dict(pkey=text_type(pkey), value=value)
             if self.is_in_group('managers'):
                 kwargs['for_user'] = self
             self._cw.create_entity('CWProperty', **kwargs)