@core_helper
def dashboard_activity_stream(user_id, filter_type=None, filter_id=None, offset=0):
 context = {'model': model, 'session': model.Session, 'user': c.user}
 if filter_type:
  action_functions = {'dataset': 'package_activity_list_html', 'user': 'user_activity_list_html', 'group': 'group_activity_list_html', 'organization': 'organization_activity_list_html'}
  action_function = logic.get_action(action_functions.get(filter_type))
  return action_function(context, {'id': filter_id, 'offset': offset})
 else:
  return logic.get_action('dashboard_activity_list_html')(context, {'offset': offset})

@ core_helper def dashboard_activity_stream ( user_id , filter_type = None , filter_id = None , offset = 0 ) : context = { 'model' : model , 'session' : model . Session , 'user' : c . user } if filter_type : action_functions = { 'dataset' : 'package_activity_list_html' , 'user' : 'user_activity_list_html' , 'group' : 'group_activity_list_html' , 'organization' : 'organization_activity_list_html' } action_function = logic . get_action ( action_functions . get ( filter_type ) ) return action_function ( context , { 'id' : filter_id , 'offset' : offset } ) else : return logic . get_action ( 'dashboard_activity_list_html' ) ( context , { 'offset' : offset } )
return the dashboard activity stream of the current user .