pgcontents/db_utils.py
def to_dict_no_content(fields, row):
    """
    Convert a SQLAlchemy row that does not contain a 'content' field to a dict.

    If row is None, return None.

    Raises AssertionError if there is a field named 'content' in ``fields``.
    """
    assert(len(fields) == len(row))

    field_names = list(map(_get_name, fields))
    assert 'content' not in field_names, "Unexpected content field."

    return dict(zip(field_names, row))
def to_dict_no_content(fields, row):
    assert(len(fields) == len(row))

    field_names = list(map(_get_name, fields))
    assert 'content' not in field_names, "Unexpected content field."

    return dict(zip(field_names, row))
def to_dict_no_content ( fields , row ) : assert ( len ( fields ) == len ( row ) ) field_names = list ( map ( _get_name , fields ) ) assert 'content' not in field_names , "Unexpected content field." return dict ( zip ( field_names , row ) )
Convert a SQLAlchemy row that does not contain a 'content' field to a dict.

    If row is None, return None.

    Raises AssertionError if there is a field named 'content' in ``fields``.
Convert a SQLAlchemy row that does not contain a content field to a dict .