@core_helper
def new_activities():
 if (not c.userobj):
  return None
 action = logic.get_action('dashboard_new_activities_count')
 return action({}, {})

@ core_helper def new_activities ( ) : if ( not c . userobj ) : return None action = logic . get_action ( 'dashboard_new_activities_count' ) return action ( { } , { } )
return the number of activities for the current user .