def dashboard_new_activities_count(context, data_dict):
 _check_access('dashboard_new_activities_count', context, data_dict)
 activities = logic.get_action('dashboard_activity_list')(context, data_dict)
 return len([activity for activity in activities if activity['is_new']])

def dashboard_new_activities_count ( context , data_dict ) : _check_access ( 'dashboard_new_activities_count' , context , data_dict ) activities = logic . get_action ( 'dashboard_activity_list' ) ( context , data_dict ) return len ( [ activity for activity in activities if activity [ 'is_new' ] ] )
return the number of new activities in the users dashboard .