def generate_site_xml(args, template_dict):
  template_path = "%s/site.xml.tmpl" % get_template_dir()

  template = Template(open(template_path).read())
  config_value = ""
  keys = template_dict.keys()
  keys.sort()
  for key in keys:
    config_value += """
  <property>
    <name>%s</name>
    <value>%s</value>
  </property>
""" % (key, template_dict[key])
  return template.substitute({"config_value": config_value})
Parse the header, returning a CacheControl object.
dataset/ETHPy150Open XiaoMi/minos/client/deploy_utils.py/generate_site_xml--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webob-1.1.1/webob/cachecontrol.py/CacheControl.parse