def _notifications_from_dashboard_activity_list(user_dict, since):
 context = {'model': model, 'session': model.Session, 'user': user_dict['id']}
 activity_list = logic.get_action('dashboard_activity_list')(context, {})
 activity_list = [activity for activity in activity_list if (activity['user_id'] != user_dict['id'])]
 strptime = datetime.datetime.strptime
 fmt = '%Y-%m-%dT%H:%M:%S.%f'
 activity_list = [activity for activity in activity_list if (strptime(activity['timestamp'], fmt) > since)]
 return _notifications_for_activities(activity_list, user_dict)

def _notifications_from_dashboard_activity_list ( user_dict , since ) : context = { 'model' : model , 'session' : model . Session , 'user' : user_dict [ 'id' ] } activity_list = logic . get_action ( 'dashboard_activity_list' ) ( context , { } ) activity_list = [ activity for activity in activity_list if ( activity [ 'user_id' ] != user_dict [ 'id' ] ) ] strptime = datetime . datetime . strptime fmt = '%Y-%m-%dT%H:%M:%S.%f' activity_list = [ activity for activity in activity_list if ( strptime ( activity [ 'timestamp' ] , fmt ) > since ) ] return _notifications_for_activities ( activity_list , user_dict )
return any email notifications from the given users dashboard activity list since since .