예제 #1
0
def get_wrapper(obj, sqlalchemy_session=None):
    if isinstance(obj, dict):
        return _SolrResultWrapper(obj)
    return _get_wrapper(obj, sqlalchemy_session=sqlalchemy_session)
예제 #2
0
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)
예제 #3
0
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)