def get_page(self, session): current_batch = self.request.input.get('current_batch', BATCH_DEFAULTS.PAGE_NO) batch_size = self.request.input.get('batch_size', BATCH_DEFAULTS.SIZE) batch_size = min(batch_size, BATCH_DEFAULTS.MAX_SIZE) q = http_soap_audit_item_list(session, self.server.cluster_id, self.request.input.conn_id, self.request.input.get('start'), self.request.input.get('stop'), self.request.input.get('query'), False) return Page(q, page=current_batch, items_per_page=batch_size)
def get_page(self, session): current_batch = self.request.input.get('current_batch', BATCH_DEFAULTS.PAGE_NO) batch_size = self.request.input.get('batch_size', BATCH_DEFAULTS.SIZE) batch_size = min(batch_size, BATCH_DEFAULTS.MAX_SIZE) q = http_soap_audit_item_list(session, self.server.cluster_id, self.request.input.conn_id, self.request.input.get('start'), self.request.input.get('stop'), self.request.input.get('query'), False) return Page(q, page=current_batch, items_per_page=batch_size)