Rushabh Mehta | 518533f | 2012-02-07 13:29:31 +0530 | [diff] [blame] | 1 | #!/usr/bin/python |
| 2 | |
| 3 | import cgi, cgitb, os, sys |
| 4 | cgitb.enable() |
| 5 | |
| 6 | # import libs |
| 7 | sys.path.append('lib/py') |
| 8 | |
| 9 | import webnotes |
| 10 | import webnotes.auth |
| 11 | |
| 12 | if __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 + '/') |