def with_cursor(self, cursor):
    try:
      if not cursor:
        raise datastore_errors.BadValueError("Cursor cannot be empty")
      if not isinstance(cursor, basestring):
        raise BadValueError(
            'Cursor must be a str or unicode instance, not a %s'
            % type(cursor).__name__)
      decoded = base64.urlsafe_b64decode(cursor)
      cursor = datastore_pb.CompiledQuery(decoded)
    except (ValueError, TypeError), e:
      raise datastore_errors.BadValueError(
        'Invalid cursor %s. Details: %s' % (cursor, e))
    except Exception, e:
      if e.__class__.__name__ == 'ProtocolBufferDecodeError':
        raise datastore_errors.BadValueError('Invalid cursor %s. '
                                             'Details: %s' % (cursor, e))
      else:
        raise
    self._cursor = cursor
    return self
Create a new ordered dictionary. Cannot init from a normal dict,
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/_BaseQuery.with_cursor--crossover with--dataset/ETHPy150Open editorconfig/editorconfig-vim/plugin/editorconfig-core-py/editorconfig/odict.py/OrderedDict.__init__