invenio_migrator/legacy/communities.py
def dump(c, from_date, with_json=True, latest_only=False, **kwargs):
    """Dump the community object as dictionary.

    :param c: Community to be dumped.
    :type c: `invenio.modules.communities.models.Community`
    :returns: Community serialized to dictionary.
    :rtype: dict
    """
    return dict(id=c.id,
                id_user=c.id_user,
                title=c.title,
                description=c.description,
                page=c.page,
                curation_policy=c.curation_policy,
                last_record_accepted=dt2iso_or_empty(c.last_record_accepted),
                logo_ext=c.logo_ext,
                logo_url=c.logo_url,
                ranking=c.ranking,
                fixed_points=c.fixed_points,
                created=c.created.isoformat(),
                last_modified=c.last_modified.isoformat(),
                id_collection_provisional=c.id_collection_provisional,
                id_oairepository=c.id_oairepository,
                id_collection=c.id_collection)
def dump(c, from_date, with_json=True, latest_only=False, **kwargs):
    """Dump the community object as dictionary.

    :param c: Community to be dumped.
    :type c: `invenio.modules.communities.models.Community`
    :returns: Community serialized to dictionary.
    :rtype: dict
    """
    return dict(id=c.id,
                id_user=c.id_user,
                title=c.title,
                description=c.description,
                page=c.page,
                curation_policy=c.curation_policy,
                last_record_accepted=dt2iso_or_empty(c.last_record_accepted),
                logo_ext=c.logo_ext,
                logo_url=c.logo_url,
                ranking=c.ranking,
                fixed_points=c.fixed_points,
                created=c.created.isoformat(),
                last_modified=c.last_modified.isoformat(),
                id_collection_provisional=c.id_collection_provisional,
                id_oairepository=c.id_oairepository,
                id_collection=c.id_collection)
def dump ( c , from_date , with_json = True , latest_only = False , * * kwargs ) : return dict ( id = c . id , id_user = c . id_user , title = c . title , description = c . description , page = c . page , curation_policy = c . curation_policy , last_record_accepted = dt2iso_or_empty ( c . last_record_accepted ) , logo_ext = c . logo_ext , logo_url = c . logo_url , ranking = c . ranking , fixed_points = c . fixed_points , created = c . created . isoformat ( ) , last_modified = c . last_modified . isoformat ( ) , id_collection_provisional = c . id_collection_provisional , id_oairepository = c . id_oairepository , id_collection = c . id_collection )
Dump the community object as dictionary.

    :param c: Community to be dumped.
    :type c: `invenio.modules.communities.models.Community`
    :returns: Community serialized to dictionary.
    :rtype: dict
Dump the community object as dictionary .