Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle non-recursive path search in the ATRelativePathCriterionConverter #541

Open
dest81 opened this issue Jan 17, 2020 · 0 comments
Open

Comments

@dest81
Copy link

dest81 commented Jan 17, 2020

Now ATRelativePathCriterionConverter says 'Cannot handle non-recursive path search ....'

class ATRelativePathCriterionConverter(CriterionConverter):
    # We also have path.isWithinRelative, but its function is not defined.
    operator_code = 'string.relativePath'

    def get_query_value(self, value, index, criterion):
        if not criterion.Recurse():
            logger.warn(
                'Cannot handle non-recursive path search. '
                'Allowing recursive search. %r',
                value,
            )
        return criterion.getRelativePath()

In the plone.app.querystring we see that depth value can be passed as ::x.

Will send PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants