code: def inheritanceTree(self):
          
          inherits = self.inherits()
          while inherits:
              ischema = orb.system.schema(inherits)
              if not ischema:
                  raise orb.errors.ModelNotFound(schema=inherits)
  
              yield ischema
              inherits = ischema.inherits()
docs: Returns the inheritance tree for this schema, traversing up the hierarchy for the inherited schema instances.
  
          :return: <generator>