(obj, active=None, user=None)
return c
Get a list of item names for a specific item in CRITs.

    :param obj: The class representing the item to get names for.
    :type obj: class
    :param active: Return:
                   None: active and inactive items.
                   True: active items.
                   False: inactive items.
    :type active: boolean
    :returns: :class:`crits.core.crits_mongoengine.CritsQuerySet`
Get a list of item names for a specific item in CRITs.
Get a list of item names for a specific item in CRITs .
def get_item_names(obj, active=None, user=None):
    """
    Get a list of item names for a specific item in CRITs.

    :param obj: The class representing the item to get names for.
    :type obj: class
    :param active: Return:
                   None: active and inactive items.
                   True: active items.
                   False: inactive items.
    :type active: boolean
    :returns: :class:`crits.core.crits_mongoengine.CritsQuerySet`
    """

    # Don't use this to get sources.
    if isinstance(obj, SourceAccess):
        return []

    if active is None:
       c = obj.objects().order_by('+name')
    else:
        if active:
            c = obj.objects(active='on').order_by('+name')
        else:
            c = obj.objects(active='off').order_by('+name')
    return c
def get_item_names ( obj , active = None , user = None ) : # Don't use this to get sources. if isinstance ( obj , SourceAccess ) : return [ ] if active is None : c = obj . objects ( ) . order_by ( '+name' ) else : if active : c = obj . objects ( active = 'on' ) . order_by ( '+name' ) else : c = obj . objects ( active = 'off' ) . order_by ( '+name' ) return c