def get_wrapper(obj, sqlalchemy_session=None): if isinstance(obj, dict): return _SolrResultWrapper(obj) return _get_wrapper(obj, sqlalchemy_session=sqlalchemy_session)
def get_wrapper(obj, sqlalchemy_session=None): if isinstance(obj, dict) and 'responseHeader' in obj: return _SolrResultWrapper(obj) if isinstance(obj, list): return obj return _get_wrapper(obj, sqlalchemy_session=sqlalchemy_session)