def wrap_split_big_content(func_, *args, **kwargs):
    """
    chunk the content into smaller binary blobs before inserting

    this function should chunk in such a way that this
    is completely transparent to the user.

    :param func_:
    :param args:
    :param kwargs:
    :return: <dict> RethinkDB dict from insert
    """
    obj_dict = args[0]
    if len(obj_dict[CONTENT_FIELD]) < MAX_PUT:
        obj_dict[PART_FIELD] = False
        return func_(*args, **kwargs)
    else:
        return _perform_chunking(func_, *args, **kwargs)
def wrap_split_big_content ( func_ , * args , ** kwargs ) : obj_dict = args [ 0 ] if len ( obj_dict [ CONTENT_FIELD ] ) < MAX_PUT : obj_dict [ PART_FIELD ] = False return func_ ( * args , ** kwargs ) else : return _perform_chunking ( func_ , * args , ** kwargs )
chunk the content into smaller binary blobs before inserting

    this function should chunk in such a way that this
    is completely transparent to the user.

    :param func_:
    :param args:
    :param kwargs:
    :return: <dict> RethinkDB dict from insert