(obj)
return (ind, releas)
Creates a STIX Indicator object from a CybOX object.

    Returns the STIX Indicator and the original CRITs object's
    releasability list.
Creates a STIX Indicator object from a CybOX object.
Creates a STIX Indicator object from a CybOX object .
def to_stix_indicator(obj):
    """
    Creates a STIX Indicator object from a CybOX object.

    Returns the STIX Indicator and the original CRITs object's
    releasability list.
    """
    from stix.indicator import Indicator as S_Ind
    from stix.common.identity import Identity
    ind = S_Ind()
    obs, releas = to_cybox_observable(obj)
    for ob in obs:
        ind.add_observable(ob)
        try:
            ind.confidence = obj.confidence.rating.title()
        except:
            pass
        try:
            ind.likely_impact = obj.impact.rating.title()
        except:
            pass
    #TODO: determine if a source wants its name shared. This will
    #   probably have to happen on a per-source basis rather than a per-
    #   object basis.
    identity = Identity(name=settings.COMPANY_NAME)
    ind.set_producer_identity(identity)

    return (ind, releas)
def to_stix_indicator ( obj ) : from stix . indicator import Indicator as S_Ind from stix . common . identity import Identity ind = S_Ind ( ) obs , releas = to_cybox_observable ( obj ) for ob in obs : ind . add_observable ( ob ) try : ind . confidence = obj . confidence . rating . title ( ) except : pass try : ind . likely_impact = obj . impact . rating . title ( ) except : pass #TODO: determine if a source wants its name shared. This will #   probably have to happen on a per-source basis rather than a per- #   object basis. identity = Identity ( name = settings . COMPANY_NAME ) ind . set_producer_identity ( identity ) return ( ind , releas )