Commit 0e08a492 authored by Łukasz Nowak's avatar Łukasz Nowak

Revert "Support relation by relative_url too."

This reverts commit 61bf44bc.

There is not need to make things too complex.
parent 61bf44bc
...@@ -67,12 +67,8 @@ class CategoryRelatedMembershipArityConstraint(CategoryMembershipArityConstraint ...@@ -67,12 +67,8 @@ class CategoryRelatedMembershipArityConstraint(CategoryMembershipArityConstraint
# a string # a string
assert len(base_category_list) != 0 assert len(base_category_list) != 0
base_category = base_category_list[0] sql_kw = {'portal_type': portal_type_list,
sql_kw = {'portal_type': portal_type_list} '%s_uid' % base_category_list[0]: obj.getUid()}
if base_category.endswith('_relative_url'):
sql_kw['%s' % base_category] = obj.getRelativeUrl()
else:
sql_kw['%s_uid' % base_category_list[0]] = obj.getUid()
sql_kw.update(self._getExpressionValue(obj, self.getFilterParameter())) sql_kw.update(self._getExpressionValue(obj, self.getFilterParameter()))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment