'Returns a list of dicts as with find_items but additionally supports
returning just a portion of the total list, for instance in supporting
a web app that wants to show a limited amount of items per page.'

def find_items_paged(self, what, criteria=None, sort_field=None, page=None, items_per_page=None, token=None):

    self._log(('find_items_paged(%s);    criteria(%s);    sort(%s)' % (what, criteria, sort_field)), token=token)
    items = self.api.find_items(what, criteria=criteria)
    items = self.__sort(items, sort_field)
    (items, pageinfo) = self.__paginate(items, page, items_per_page)
    items = [x.to_dict() for x in items]
    return self.xmlrpc_hacks({'items': items, 'pageinfo': pageinfo})
