'Return a set of detailed attributes for a visualization in dictionary form.
NOTE: that encoding ids isn\'t done here should happen at the caller level.'

def get_visualization_revision_dict(self, revision):

    return {'model_class': 'VisualizationRevision', 'id': revision.id, 'visualization_id': revision.visualization.id, 'title': revision.title, 'dbkey': revision.dbkey, 'config': revision.config}
