Commit 89725459 authored by Ivan Tyagov's avatar Ivan Tyagov

Increase the too low limit of what a hateos call should return. useful for testnode case.

parent 92a59dd9
......@@ -275,6 +275,12 @@ class HateoasNavigator(object):
}
def jio_allDocs(self, query):
# by default search_url is a Python script (ERP5Document_getHateoas)
# which enforces a too low limit of what is to be returned (default = 10)
# as testnode uses this to introspect created ERP5 instance which usually has
# at least 18 sub instances this limit is too low thus we need to explicitly
# increase it. 1000 is the de-facto default ERP5 catalog one
query['limit'] = 1000
search_url = self._getSearchUrl()
getter_link = expand(search_url, query)
......
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