(obj)
return (ta, obj.releasability)
Create a STIX Actor.
Create a STIX Actor.
Create a STIX Actor .
def to_stix_actor(obj):
    """
    Create a STIX Actor.
    """

    ta = ThreatActor()
    ta.title = obj.name
    ta.description = obj.description
    for tt in obj.threat_types:
        ta.add_type(tt)
    for m in obj.motivations:
        ta.add_motivation(m)
    for ie in obj.intended_effects:
        ta.add_intended_effect(ie)
    for s in obj.sophistications:
        ta.add_sophistication(s)
    #for i in self.identifiers:
    return (ta, obj.releasability)
def to_stix_actor ( obj ) : ta = ThreatActor ( ) ta . title = obj . name ta . description = obj . description for tt in obj . threat_types : ta . add_type ( tt ) for m in obj . motivations : ta . add_motivation ( m ) for ie in obj . intended_effects : ta . add_intended_effect ( ie ) for s in obj . sophistications : ta . add_sophistication ( s ) #for i in self.identifiers: return ( ta , obj . releasability )