parameters: (self, directory, globe_info)
return_statement: return select
docstring: Creates an HTML select for available globes.
docstring_summary: Creates an HTML select for available globes.
docstring_tokens: Creates an HTML select for available globes .
function: def GlobeSelectDiv(self, directory, globe_info):
      """Creates an HTML select for available globes."""
      globe_list = self.GlobeList(directory, [".glb", ".glm", ".glc", ".mbt"])
      template = """
  <div class="span-5" style="text-align:left">
  <span class="field_title">&nbsp;&nbsp;
  <a class="serving_action" href="?cmd=serve_globe&globe=[#GLOBE_PATH]">
  [#GLOBE_NAME]</a></span></div>
  <div class="span-5 last" style="text-align:right">
  <a class="serving_action" href="?cmd=show_info&globe=[#GLOBE_PATH]">
  <!-- info --></a></div>
  <hr/>
  """
      info_template = """
  <div class="span-5" style="text-align:left">
  <span class="field_title">&nbsp;&nbsp;
  <a class="serving_action" href="?cmd=serve_globe&globe=[#GLOBE_PATH]">
  [#GLOBE_NAME]</a></span><br/>[#GLOBE_DESCRIPTION]</div>
  <hr/>
  """
      selected_template = """
  <div class="span-5" style="text-align:left">
  <span class="field_title">&nbsp;&nbsp;
  [#GLOBE_NAME]</span></div>
  <div class="span-5 last" style="text-align:right">
  now serving</div>
  <hr/>
  """
      if globe_list:
        select = ""
        current_globe_name = tornado.web.globe_.GlobeName()
        for globe_dir in globe_list:
          globe_name = os.path.basename(globe_dir)
          if current_globe_name == globe_name:
            next_globe = selected_template
          else:
            if globe_info == globe_dir:
              next_globe = info_template.replace("[#GLOBE_DESCRIPTION]",
                                                 "description")
            else:
              next_globe = template
  
          next_globe = next_globe.replace("[#GLOBE_NAME]", globe_name)
          next_globe = next_globe.replace("[#GLOBE_PATH]", PosixPath(globe_dir))
          select += next_globe
      else:
        select = ("<div class='span-5' style='text-align:left'>"
                  "No .glb or .glm files found.</div>")
  
      return select
function_tokens: def GlobeSelectDiv ( self , directory , globe_info ) : globe_list = self . GlobeList ( directory , [ ".glb" , ".glm" , ".glc" , ".mbt" ] ) template = """
  <div class="span-5" style="text-align:left">
  <span class="field_title">&nbsp;&nbsp;
  <a class="serving_action" href="?cmd=serve_globe&globe=[#GLOBE_PATH]">
  [#GLOBE_NAME]</a></span></div>
  <div class="span-5 last" style="text-align:right">
  <a class="serving_action" href="?cmd=show_info&globe=[#GLOBE_PATH]">
  <!-- info --></a></div>
  <hr/>
  """ info_template = """
  <div class="span-5" style="text-align:left">
  <span class="field_title">&nbsp;&nbsp;
  <a class="serving_action" href="?cmd=serve_globe&globe=[#GLOBE_PATH]">
  [#GLOBE_NAME]</a></span><br/>[#GLOBE_DESCRIPTION]</div>
  <hr/>
  """ selected_template = """
  <div class="span-5" style="text-align:left">
  <span class="field_title">&nbsp;&nbsp;
  [#GLOBE_NAME]</span></div>
  <div class="span-5 last" style="text-align:right">
  now serving</div>
  <hr/>
  """ if globe_list : select = "" current_globe_name = tornado . web . globe_ . GlobeName ( ) for globe_dir in globe_list : globe_name = os . path . basename ( globe_dir ) if current_globe_name == globe_name : next_globe = selected_template else : if globe_info == globe_dir : next_globe = info_template . replace ( "[#GLOBE_DESCRIPTION]" , "description" ) else : next_globe = template next_globe = next_globe . replace ( "[#GLOBE_NAME]" , globe_name ) next_globe = next_globe . replace ( "[#GLOBE_PATH]" , PosixPath ( globe_dir ) ) select += next_globe else : select = ( "<div class='span-5' style='text-align:left'>" "No .glb or .glm files found.</div>" ) return select