Commit d6841bb9 authored by Ivan Tyagov's avatar Ivan Tyagov Committed by Rafael Monnerat

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

Set proper limit.

This is follow-up of !127

/reviewed-on !128
parent d5b9b65e
...@@ -275,6 +275,13 @@ class HateoasNavigator(object): ...@@ -275,6 +275,13 @@ class HateoasNavigator(object):
} }
def jio_allDocs(self, query): 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. 40 is the de-facto default ERP5 preference for number of objects
# which are usually to be rendered in alistbox 'view' mode
query['limit'] = 40
search_url = self._getSearchUrl() search_url = self._getSearchUrl()
getter_link = expand(search_url, query) 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