parameters: (obj, active=None, user=None)
return_statement: return c
docstring: 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`
docstring_summary: Get a list of item names for a specific item in CRITs.
docstring_tokens: Get a list of item names for a specific item in CRITs .
function: 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
function_tokens: 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