parameters: (self, include_self = True, include_book = False)
return_statement: return refs
docstring: :return: a list of more general refs that contain this one - out too, and including, the book level
docstring_summary: :return: a list of more general refs that contain this one - out too, and including, the book level
docstring_tokens: : return : a list of more general refs that contain this one - out too and including the book level
function: def all_context_refs(self, include_self = True, include_book = False):
          """
          :return: a list of more general refs that contain this one - out too, and including, the book level
          """
  
          refs = [self] if include_self else []
          try:
              current_level = self.index_node.depth - len(self.sections)
              refs += [self.context_ref(n) for n in  range(current_level + 1, self.index_node.depth + 1)]
          except AttributeError:  # If self is a Schema Node
              pass
  
          n = self.index_node.parent
  
          while n is not None:
              try:
                  refs += [n.ref()]
              except AttributeError:  # Jump over VirtualNodes
                  pass
              n = n.parent
          if not include_book:
              refs = refs[:-1]
          return refs
function_tokens: def all_context_refs ( self , include_self = True , include_book = False ) : refs = [ self ] if include_self else [ ] try : current_level = self . index_node . depth - len ( self . sections ) refs += [ self . context_ref ( n ) for n in range ( current_level + 1 , self . index_node . depth + 1 ) ] except AttributeError : # If self is a Schema Node pass n = self . index_node . parent while n is not None : try : refs += [ n . ref ( ) ] except AttributeError : # Jump over VirtualNodes pass n = n . parent if not include_book : refs = refs [ : - 1 ] return refs