Exemplo n.º 1
0
def club_join(actor, club, **kwargs):
    return Event(
        type=Event.Type.CLUB_JOIN,
        time=datetime(2017, 02, 15, 12, 34, 56),
        actor=actor,
        club=club,
    ).apply_kwargs(kwargs)
Exemplo n.º 2
0
def follower(actor, user, **kwargs):
    return Event(
        type=Event.Type.FOLLOWER,
        time=datetime(2017, 02, 13, 12, 34, 56),
        actor=actor,
        user=user,
    ).apply_kwargs(kwargs)
Exemplo n.º 3
0
def flight(actor, flight, **kwargs):
    return Event(
        type=Event.Type.FLIGHT,
        time=datetime(2017, 02, 12, 12, 34, 56),
        actor=actor,
        flight=flight,
    ).apply_kwargs(kwargs)
Exemplo n.º 4
0
def flight_comment(flight_comment, **kwargs):
    return Event.for_flight_comment(flight_comment) \
        .apply_kwargs(dict(time=datetime(2017, 2, 11, 12, 34, 56))) \
        .apply_kwargs(kwargs)
Exemplo n.º 5
0
def club_join(actor, club, **kwargs):
    return Event.for_club_join(club.id, actor) \
        .apply_kwargs(dict(time=datetime(2017, 2, 15, 12, 34, 56))) \
        .apply_kwargs(kwargs)
Exemplo n.º 6
0
def new_user(actor, **kwargs):
    return Event.for_new_user(actor) \
        .apply_kwargs(dict(time=datetime(2017, 2, 14, 12, 34, 56))) \
        .apply_kwargs(kwargs)
Exemplo n.º 7
0
def follower(actor, user, **kwargs):
    return Event.for_follower(user, actor) \
        .apply_kwargs(dict(time=datetime(2017, 2, 13, 12, 34, 56))) \
        .apply_kwargs(kwargs)
Exemplo n.º 8
0
def flight(flight, **kwargs):
    return (
        Event.for_flight(flight)
        .apply_kwargs(dict(time=datetime(2017, 2, 12, 12, 34, 56)))
        .apply_kwargs(kwargs)
    )
Exemplo n.º 9
0
def new_user(actor, **kwargs):
    return Event(
        type=Event.Type.NEW_USER,
        time=datetime(2017, 02, 14, 12, 34, 56),
        actor=actor,
    ).apply_kwargs(kwargs)