cubicweb/_exceptions.py
branch3.26
changeset 12342 57e06dd166d4
parent 11917 c38e13988c10
child 12508 a8c1ea390400
equal deleted inserted replaced
12340:b22d1d9316e4 12342:57e06dd166d4
    96 
    96 
    97     @cachedproperty
    97     @cachedproperty
    98     def rtypes(self):
    98     def rtypes(self):
    99         if 'rtypes' in self.kwargs:
    99         if 'rtypes' in self.kwargs:
   100             return self.kwargs['rtypes']
   100             return self.kwargs['rtypes']
   101         cstrname = unicode(self.kwargs['cstrname'])
   101         cstrname = text_type(self.kwargs['cstrname'])
   102         cstr = self.session.find('CWUniqueTogetherConstraint', name=cstrname).one()
   102         cstr = self.session.find('CWUniqueTogetherConstraint', name=cstrname).one()
   103         return sorted(rtype.name for rtype in cstr.relations)
   103         return sorted(rtype.name for rtype in cstr.relations)
   104 
   104 
   105     @cachedproperty
   105     @cachedproperty
   106     def args(self):
   106     def args(self):