parameters: (self, xml, use_namespace)
docstring: handle all of the references to the cache
docstring_summary: handle all of the references to the cache
docstring_tokens: handle all of the references to the cache
function: def handle_all_cache(self, xml, use_namespace):
          '''handle all of the references to the cache'''
          cache_nodes = xml.get_nodes("snapshot/ref[@type='cache']")
          for cache_node in cache_nodes:
              # get the snapshot
              search_type = Xml.get_attribute(cache_node, "search_type")
              search_id = Xml.get_attribute(cache_node, "search_id")
              context = Xml.get_attribute(cache_node, "context")
      
              version = Xml.get_attribute(cache_node, "version")
              snapshot = Snapshot.get_by_version( \
                      search_type, search_id, context, version )
  
              if not snapshot:
                  continue
              
              cache_xml = snapshot.get_xml_value("snapshot")
  
              file_node = cache_xml.get_node("snapshot/file[@type='geo']")
  
              # HACK: Backwards compatibility: put the node name in here
              # so handle_texture works as before
              node_name = Xml.get_attribute(cache_node, "node")
              attr_name = Xml.get_attribute(cache_node, "attr")
              Xml.set_attribute(file_node, "node", node_name)
              Xml.set_attribute(file_node, "attr", attr_name)
  
              self._handle_cache(file_node, snapshot, use_namespace)
function_tokens: def handle_all_cache ( self , xml , use_namespace ) : cache_nodes = xml . get_nodes ( "snapshot/ref[@type='cache']" ) for cache_node in cache_nodes : # get the snapshot search_type = Xml . get_attribute ( cache_node , "search_type" ) search_id = Xml . get_attribute ( cache_node , "search_id" ) context = Xml . get_attribute ( cache_node , "context" ) version = Xml . get_attribute ( cache_node , "version" ) snapshot = Snapshot . get_by_version ( search_type , search_id , context , version ) if not snapshot : continue cache_xml = snapshot . get_xml_value ( "snapshot" ) file_node = cache_xml . get_node ( "snapshot/file[@type='geo']" ) # HACK: Backwards compatibility: put the node name in here # so handle_texture works as before node_name = Xml . get_attribute ( cache_node , "node" ) attr_name = Xml . get_attribute ( cache_node , "attr" ) Xml . set_attribute ( file_node , "node" , node_name ) Xml . set_attribute ( file_node , "attr" , attr_name ) self . _handle_cache ( file_node , snapshot , use_namespace )