No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

21 líneas
406 B

  1. #!/usr/bin/python
  2. import sys, os, cgi
  3. sys.path.append(os.getcwd()+'/cgi-bin')
  4. import webnotes
  5. import webnotes.db
  6. import webnotes.utils.sitemap
  7. # connect to the default db
  8. webnotes.conn = webnotes.db.Database()
  9. # get the server prefix
  10. prefix = webnotes.conn.get_global('sitemap_url')
  11. print "Content-Type: text/xml"
  12. print
  13. # get the xml
  14. print webnotes.utils.sitemap.generate_xml(webnotes.conn, prefix)