Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 983:4a988dc8d9b8
Fix RSS feeds
author | mpm@selenic.com |
---|---|
date | Sun, 21 Aug 2005 11:46:39 -0700 |
parents | 8d2e24bae760 |
children | edc368e0b9aa |
comparison
equal
deleted
inserted
replaced
982:8d2e24bae760 | 983:4a988dc8d9b8 |
---|---|
626 t = self.templates or self.repo.ui.config("web", "templates", | 626 t = self.templates or self.repo.ui.config("web", "templates", |
627 templatepath()) | 627 templatepath()) |
628 m = os.path.join(t, "map") | 628 m = os.path.join(t, "map") |
629 if args.has_key('style'): | 629 if args.has_key('style'): |
630 b = os.path.basename("map-" + args['style'][0]) | 630 b = os.path.basename("map-" + args['style'][0]) |
631 p = os.path.join(self.templates, b) | 631 p = os.path.join(t, b) |
632 if os.path.isfile(p): m = p | 632 if os.path.isfile(p): m = p |
633 print m | |
633 | 634 |
634 port = os.environ["SERVER_PORT"] | 635 port = os.environ["SERVER_PORT"] |
635 port = port != "80" and (":" + port) or "" | 636 port = port != "80" and (":" + port) or "" |
636 uri = os.environ["REQUEST_URI"] | 637 uri = os.environ["REQUEST_URI"] |
637 if "?" in uri: uri = uri.split("?")[0] | 638 if "?" in uri: uri = uri.split("?")[0] |