changeset 11630 | 1400aee10df4 |
parent 11599 | f8ba6ea94af9 |
--- a/pyramid_cubicweb/resources.py Tue Jun 28 11:03:20 2016 +0200 +++ b/pyramid_cubicweb/resources.py Thu Jul 07 14:30:32 2016 +0200 @@ -1,5 +1,6 @@ """Contains resources classes. """ +from six import text_type from rql import TypeResolverException @@ -41,7 +42,7 @@ # conflicting eid/type raise HTTPNotFound() else: - rset = req.execute(st.as_string(), {'x': unicode(self.value)}) + rset = req.execute(st.as_string(), {'x': text_type(self.value)}) return rset