GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
In collective/geo/kml/browser/kmldocument.py (line 420) the method KMLTopicDocument.features calls the collection's method queryCatalog without parameters. i.e. the method's defaults are used: queryCatalog(self, batch=True, b_start=0, b_size=30, sort_on=None). Therefore the result ist restricted/limited to the b_size=30 even if the underlying Collection has more results.
queryCatalog(self, batch=True, b_start=0, b_size=30, sort_on=None)
Please change the call to self.context.queryCatalog(batch=False) since a batch-result probably makes no sense in a KML-Document. This sets no limit in the results and implicitly uses the limit of the underlying Collection.
Alternatively you could pass the limit of the underlying Collection and let the use define the Limit: queryCatalog(self, batch=True, b_start=0, b_size=self.context.limit, sort_on=None).
queryCatalog(self, batch=True, b_start=0, b_size=self.context.limit, sort_on=None)
I have choosen to pass batch=False in the 'queryCatalog' call.
Please, let me know if it works properly for you.
I agree with your decission.
Thank you very much.