# HG changeset patch # User Denis Laxalde # Date 1561630401 -7200 # Node ID ea89ca9017c43f50e8a2558889f08af60f4314c7 # Parent 7ef1c90912831f46ad568ada8eec55c67e91808a [py3] unicode() -> six.text_type in autoform diff -r 7ef1c9091283 -r ea89ca9017c4 cubicweb/web/views/autoform.py --- a/cubicweb/web/views/autoform.py Wed Jun 26 15:01:45 2019 +0200 +++ b/cubicweb/web/views/autoform.py Thu Jun 27 12:13:21 2019 +0200 @@ -118,6 +118,7 @@ .. Controlling the generic relation fields """ +import six from six.moves import range from logilab.mtconverter import xml_escape @@ -310,7 +311,7 @@ if form.form_previous_values: cdvalues = self._cw.list_form_param(eid_param(self.rtype, self.peid), form.form_previous_values) - if unicode(entity.eid) not in cdvalues: + if six.text_type(entity.eid) not in cdvalues: return False return True