web/views/urlpublishing.py
changeset 3720 5376aaadd16b
parent 3377 dd9d292b6a6d
parent 3689 deb13e88e037
child 4023 eae23c40627a
equal deleted inserted replaced
3678:29f74716fd70 3720:5376aaadd16b
   156         cls = self.vreg['etypes'].etype_class(etype)
   156         cls = self.vreg['etypes'].etype_class(etype)
   157         if parts:
   157         if parts:
   158             if len(parts) == 2:
   158             if len(parts) == 2:
   159                 attrname = parts.pop(0).lower()
   159                 attrname = parts.pop(0).lower()
   160                 try:
   160                 try:
   161                     cls.e_schema.subject_relation(attrname)
   161                     cls.e_schema.subjrels[attrname]
   162                 except KeyError:
   162                 except KeyError:
   163                     raise PathDontMatch()
   163                     raise PathDontMatch()
   164             else:
   164             else:
   165                 attrname = cls._rest_attr_info()[0]
   165                 attrname = cls._rest_attr_info()[0]
   166             value = req.url_unquote(parts.pop(0))
   166             value = req.url_unquote(parts.pop(0))