code: def get_object(brain_or_object):
      
      if not is_object(brain_or_object):
          fail("{} is not supported.".format(repr(brain_or_object)))
      if is_brain(brain_or_object):
          return brain_or_object.getObject()
      return brain_or_object
docs: Get the full content object
  
      :param brain_or_object: A single catalog brain or content object
      :type brain_or_object: PortalObject/ATContentType/DexterityContentType
      /CatalogBrain
      :returns: The full object