parameters: (id_, activity, user, **kwargs)
docstring: Add activity to an Indicator.
  
      :param id_: The ObjectId of the indicator to update.
      :type id_: str
      :param activity: The activity information.
      :type activity: dict
      :param user: The user adding the activitty.
      :type user: CRITsUser
      :returns: dict with keys:
                "success" (boolean),
                "message" (str) if failed,
                "object" (dict) if successful.
docstring_summary: Add activity to an Indicator.
docstring_tokens: Add activity to an Indicator .
function: def activity_add(id_, activity, user, **kwargs):
      """
      Add activity to an Indicator.
  
      :param id_: The ObjectId of the indicator to update.
      :type id_: str
      :param activity: The activity information.
      :type activity: dict
      :param user: The user adding the activitty.
      :type user: CRITsUser
      :returns: dict with keys:
                "success" (boolean),
                "message" (str) if failed,
                "object" (dict) if successful.
      """
  
      sources = user_sources(user.username)
      indicator = Indicator.objects(id=id_,
                                    source__name__in=sources).first()
      if not indicator:
          return {'success': False,
                  'message': 'Could not find Indicator'}
      try:
  
          activity['analyst'] = user.username
          indicator.add_activity(activity['analyst'],
                                 activity['start_date'],
                                 activity['end_date'],
                                 activity['description'],
                                 activity['date'])
          indicator.save(username=user.username)
          return {'success': True, 'object': activity,
                  'id': str(indicator.id)}
      except ValidationError, e:
          return {'success': False, 'message': e,
                  'id': str(indicator.id)}
function_tokens: def activity_add ( id_ , activity , user , * * kwargs ) : sources = user_sources ( user . username ) indicator = Indicator . objects ( id = id_ , source__name__in = sources ) . first ( ) if not indicator : return { 'success' : False , 'message' : 'Could not find Indicator' } try : activity [ 'analyst' ] = user . username indicator . add_activity ( activity [ 'analyst' ] , activity [ 'start_date' ] , activity [ 'end_date' ] , activity [ 'description' ] , activity [ 'date' ] ) indicator . save ( username = user . username ) return { 'success' : True , 'object' : activity , 'id' : str ( indicator . id ) } except ValidationError , e : return { 'success' : False , 'message' : e , 'id' : str ( indicator . id ) }