print_list(target_object, noti=True)
+def nothing(e):
+ """
+ Do nothing for other event
+ """
+ return
+
+
def print_event(e):
"""
Notify an event
'list_user_subscribed': notify_list_user_subscribed,
'list_user_unsubscribed': notify_list_user_unsubscribed,
}
- event_dict[e['event']](e)
+ event_dict.get(e['event'],nothing)(e)
def show_profile(u):