def select_vhost(domain, vhosts):
 if (not vhosts):
  return None
 while True:
  (code, tag) = _vhost_menu(domain, vhosts)
  if (code == display_util.HELP):
   _more_info_vhost(vhosts[tag])
  elif (code == display_util.OK):
   return vhosts[tag]
  else:
   return None

def select_vhost ( domain , vhosts ) : if ( not vhosts ) : return None while True : ( code , tag ) = _vhost_menu ( domain , vhosts ) if ( code == display_util . HELP ) : _more_info_vhost ( vhosts [ tag ] ) elif ( code == display_util . OK ) : return vhosts [ tag ] else : return None
select an appropriate apache vhost .