def list(current):
    """Return all the known artifacts."""
    db = current.db
    result = []
    for row in db(db.artifacts.id > 0).select():
        result.append(dict(name=row.artifact.name,
                           artifact=row.artifact.to_primitive()))

    return dict(data=result)