(db, doc_id)
Returns an generator of old versions of the document
    Note that there may be unavailable old revisions not included
Returns an generator of old versions of the document
    Note that there may be unavailable old revisions not included
Returns an generator of old versions of the document Note that there may be unavailable old revisions not included
def iter_old_doc_versions(db, doc_id):
    """
    Returns an generator of old versions of the document
    Note that there may be unavailable old revisions not included
    """
    for rev in get_revisions_info(db, doc_id):
        if rev['status'] == 'available':
            yield get_old_rev(db, doc_id, rev['rev'])
def iter_old_doc_versions ( db , doc_id ) : for rev in get_revisions_info ( db , doc_id ) : if rev [ 'status' ] == 'available' : yield get_old_rev ( db , doc_id , rev [ 'rev' ] )