code: def get_id(brain_or_object):
      
      if is_brain(brain_or_object) and base_hasattr(brain_or_object, "getId"):
          return brain_or_object.getId
      return get_object(brain_or_object).getId()
docs: Get the Plone ID for this object
  
      :param brain_or_object: A single catalog brain or content object
      :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
      :returns: Plone ID
      :rtype: string