equal
deleted
inserted
replaced
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)) |