def WriteXML(self, file):
    if not self.loc:
      return
    out = SITEURL_XML_PREFIX
 
    # printed_news_tag indicates if news-specific metatags are present
    printed_news_tag = False
    for attribute in self.__slots__:
      value = getattr(self, attribute)
      if value:
        if type(value) == types.UnicodeType:
          value = encoder.NarrowText(value, None)
        elif type(value) != types.StringType:
          value = str(value)
          value = xml.sax.saxutils.escape(value)
        if attribute in NEWS_SPECIFIC_TAGS:
          if not printed_news_tag:
	    printed_news_tag = True
	    out = out + NEWS_TAG_XML_PREFIX
	  out = out + ('    <news:%s>%s</news:%s>\n' % (attribute, value, attribute))
        else:
	  out = out + ('  <%s>%s</%s>\n' % (attribute, value, attribute))
 
    if printed_news_tag:
      out = out + NEWS_TAG_XML_SUFFIX
    out = out + SITEURL_XML_SUFFIX
    file.write(out)
  #end def WriteXML
#end class NewsURL
Start AMQP Broker
dataset/ETHPy150Open benoitc/restkit/doc/sitemap_gen.py/NewsURL.WriteXML--crossover with--dataset/ETHPy150Open jookies/jasmin/jasmin/bin/jasmind.py/JasminDaemon.startAMQPBrokerService