Ejemplo n.º 1
0
def dump(obj, from_date, with_json=True, latest_only=False, **kwargs):
    """Dump the remote accounts as a list of dictionaries."""
    return dict(id=obj.id,
                pid_type=obj.pid_type,
                pid_value=obj.pid_value,
                pid_provider=obj.pid_provider,
                status=str(obj.status),
                object_type=obj.object_type,
                object_value=obj.object_value,
                created=dt2iso_or_empty(obj.created),
                last_modified=dt2iso_or_empty(obj.last_modified))
Ejemplo n.º 2
0
def dump(obj, from_date, with_json=True, latest_only=False, **kwargs):
    """Dump the remote accounts as a list of dictionaries."""
    return dict(id=obj.id,
                pid_type=obj.pid_type,
                pid_value=obj.pid_value,
                pid_provider=obj.pid_provider,
                status=str(obj.status),
                object_type=obj.object_type,
                object_value=obj.object_value,
                created=dt2iso_or_empty(obj.created),
                last_modified=dt2iso_or_empty(obj.last_modified))
Ejemplo n.º 3
0
def dump(ar, from_date, with_json=True, latest_only=False, **kwargs):
    """Dump the remote accounts as a list of dictionaries."""
    return dict(id=ar.id,
                status=str(ar.status.code),
                receiver_user_id=ar.receiver_user_id,
                sender_user_id=ar.sender_user_id,
                sender_full_name=ar.sender_full_name,
                sender_email=ar.sender_email,
                recid=ar.recid,
                created=dt2iso_or_empty(ar.created),
                modified=dt2iso_or_empty(ar.modified),
                justification=ar.justification,
                message=ar.message,
                link_id=ar.link_id)
Ejemplo n.º 4
0
def dump(sl, from_date, with_json=True, latest_only=False, **kwargs):
    """Dump the secret links as a list of dictionaries.

    :param sl: Secret links to be dumped.
    :rtype: dict
    """
    return dict(id=sl.id,
                token=sl.token,
                owner_user_id=sl.owner_user_id,
                created=dt2iso_or_empty(sl.created),
                expires_at=dt2iso_or_empty(sl.expires_at),
                revoked_at=dt2iso_or_empty(sl.revoked_at),
                title=sl.title,
                description=sl.description)
Ejemplo n.º 5
0
def dump(ar, from_date, with_json=True, latest_only=False, **kwargs):
    """Dump the remote accounts as a list of dictionaries."""
    return dict(id=ar.id,
                status=str(ar.status.code),
                receiver_user_id=ar.receiver_user_id,
                sender_user_id=ar.sender_user_id,
                sender_full_name=ar.sender_full_name,
                sender_email=ar.sender_email,
                recid=ar.recid,
                created=dt2iso_or_empty(ar.created),
                modified=dt2iso_or_empty(ar.modified),
                justification=ar.justification,
                message=ar.message,
                link_id=ar.link_id)