blob: 04e565bc574f2e17c56507149826d777fbee75ce [file] [log] [blame]
Rushabh Mehta518533f2012-02-07 13:29:31 +05301#!/usr/bin/python
2
3import cgi, cgitb, os, sys
4cgitb.enable()
5
6# import libs
7sys.path.append('lib/py')
8
9import webnotes
10import webnotes.auth
11
12if __name__=='__main__':
13 webnotes.http_request = webnotes.auth.HTTPRequest()
14 domain = os.environ.get('HTTP_HOST')
15 protocol = os.environ.get('HTTPS') and 'https://' or 'http://'
16 from webnotes.cms import sitemap
17 print 'Content-Type: text/xml'
18 print
19 print sitemap.generate(protocol + domain + '/')