blob: 04e565bc574f2e17c56507149826d777fbee75ce [file] [log] [blame]
#!/usr/bin/python
import cgi, cgitb, os, sys
cgitb.enable()
# import libs
sys.path.append('lib/py')
import webnotes
import webnotes.auth
if __name__=='__main__':
webnotes.http_request = webnotes.auth.HTTPRequest()
domain = os.environ.get('HTTP_HOST')
protocol = os.environ.get('HTTPS') and 'https://' or 'http://'
from webnotes.cms import sitemap
print 'Content-Type: text/xml'
print
print sitemap.generate(protocol + domain + '/')