(obj)
return (inc, obj.releasability)
Creates a STIX Incident object from a CRITs Event.

    Returns the STIX Incident and the original CRITs Event's
    releasability list.
Creates a STIX Incident object from a CRITs Event.
Creates a STIX Incident object from a CRITs Event .
def to_stix_incident(obj):
    """
    Creates a STIX Incident object from a CRITs Event.

    Returns the STIX Incident and the original CRITs Event's
    releasability list.
    """
    from stix.incident import Incident
    inc = Incident(title=obj.title,
                   short_description=obj.event_type,
                   description=obj.description)
    category = get_incident_category(obj.event_type)
    if category:
        inc.add_category(category)

    return (inc, obj.releasability)
def to_stix_incident ( obj ) : from stix . incident import Incident inc = Incident ( title = obj . title , short_description = obj . event_type , description = obj . description ) category = get_incident_category ( obj . event_type ) if category : inc . add_category ( category ) return ( inc , obj . releasability )