def get_batched(portal_type=None, uid=None, endpoint=None, **kw):
<EOL>results = get_search_results(portal_type=portal_type, uid=uid, **kw)<EOL>size = req.get_batch_size()<EOL>start = req.get_batch_start()<EOL>complete = req.get_complete(default=_marker)<EOL>if complete is _marker:<EOL><INDENT>complete = uid and True or False<EOL><DEDENT>return get_batch(results, size, start, endpoint=endpoint,<EOL>complete=complete)<EOL>
Get batched results