parameters: (self, identifier_type=None, identifier=None,
                               confidence='low', analyst=None)
docstring: Attribute an identifier.
  
          :param identifier_type: The type of Identifier.
          :type identifier_type: str
          :param identifier: The identifier value.
          :type identifier: str
          :param confidence: The confidence level of the attribution.
          :type confidence: str
          :param analyst: The analyst attributing this identifier.
          :type analyst: str
docstring_summary: Attribute an identifier.
docstring_tokens: Attribute an identifier .
function: def attribute_identifier(self, identifier_type=None, identifier=None,
                               confidence='low', analyst=None):
          """
          Attribute an identifier.
  
          :param identifier_type: The type of Identifier.
          :type identifier_type: str
          :param identifier: The identifier value.
          :type identifier: str
          :param confidence: The confidence level of the attribution.
          :type confidence: str
          :param analyst: The analyst attributing this identifier.
          :type analyst: str
          """
  
          if analyst and identifier_type and identifier:
              # We don't use source restriction because if they are adding this on
              # their own, we would just append their org as a new source
              identifier = ActorIdentifier.objects(name=identifier).first()
  
              if not identifier:
                  return
  
              found = False
              for ident in self.identifiers:
                  if str(identifier.id) == str(ident.identifier_id):
                      found = True
                      break
  
              # Only add if it's not already there
              if not found:
                  e = EmbeddedActorIdentifier()
                  e.analyst = analyst
                  e.confidence = confidence
                  e.identifier_id = str(identifier.id)
                  self.identifiers.append(e)
function_tokens: def attribute_identifier ( self , identifier_type = None , identifier = None , confidence = 'low' , analyst = None ) : if analyst and identifier_type and identifier : # We don't use source restriction because if they are adding this on # their own, we would just append their org as a new source identifier = ActorIdentifier . objects ( name = identifier ) . first ( ) if not identifier : return found = False for ident in self . identifiers : if str ( identifier . id ) == str ( ident . identifier_id ) : found = True break # Only add if it's not already there if not found : e = EmbeddedActorIdentifier ( ) e . analyst = analyst e . confidence = confidence e . identifier_id = str ( identifier . id ) self . identifiers . append ( e )